home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / prolog / ai.prl / opnprlg1.hqx / Open Prolog / Open Prolog.rsrc / CODE_11_WindowOpeningStuff.txt < prev    next >
Text File  |  1993-04-15  |  96KB  |  1,681 lines

  1. # near model CODE resource
  2. # entry label at 0x0000
  3. entry:
  4. fn00000000:
  5. 00000000  4E56 FFF0                link       A6, -0x0010
  6. 00000004  48E7 F0E0                movem.l    -[A7], D0,D1,D2,D3,A0,A1,A2
  7. 00000008  246E 0008                movea.l    A2, [A6 + 0x8]
  8. 0000000C  2F3C C800 0000           move.l     -[A7], 0xC8000000
  9. 00000012  A8FD                     trap       PrGlue
  10. 00000014  0C78 0000 0944           cmpi.w     [0x00000944 /* PrintErr */], 0x0
  11. 0000001A  6600 008C                bne        +0x8E /* 000000A8 */
  12. 0000001E  206A 0348                movea.l    A0, [A2 + 0x348]
  13. 00000022  2250                     movea.l    A1, [A0]
  14. 00000024  4AA9 007E                tst.l      [A1 + 0x7E]
  15. 00000028  6642                     bne        +0x44 /* 0000006C */
  16. 0000002A  2F2A 0348                move.l     -[A7], [A2 + 0x348]
  17. 0000002E  2F3C 2004 0480           move.l     -[A7], 0x20040480
  18. 00000034  A8FD                     trap       PrGlue
  19. 00000036  3F38 0944                move.w     -[A7], [0x00000944 /* PrintErr */]
  20. 0000003A  6708                     beq        +0xA /* 00000044 */
  21. 0000003C  487A 0080                pea.l      [PC + 0x80 /* 000000BE */]
  22. 00000040  4EAD 0CD2                jsr        [A5 + 0xCD2]
  23. label00000044:
  24. 00000044  548F                     addq.l     A7, 2
  25. 00000046  4FEF FFFE                lea.l      A7, [A7 - 0x2]
  26. 0000004A  2F2A 0348                move.l     -[A7], [A2 + 0x348]
  27. 0000004E  2F3C 5204 0498           move.l     -[A7], 0x52040498
  28. 00000054  A8FD                     trap       PrGlue
  29. 00000056  3F38 0944                move.w     -[A7], [0x00000944 /* PrintErr */]
  30. 0000005A  6708                     beq        +0xA /* 00000064 */
  31. 0000005C  487A 0060                pea.l      [PC + 0x60 /* 000000BE */]
  32. 00000060  4EAD 0CD2                jsr        [A5 + 0xCD2]
  33. label00000064:
  34. 00000064  548F                     addq.l     A7, 2
  35. 00000066  4FEF 0002                lea.l      A7, [A7 + 0x2]
  36. 0000006A  6024                     bra        +0x26 /* 00000090 */
  37. label0000006C:
  38. 0000006C  4FEF FFFE                lea.l      A7, [A7 - 0x2]
  39. 00000070  2F2A 0348                move.l     -[A7], [A2 + 0x348]
  40. 00000074  2F3C 5204 0498           move.l     -[A7], 0x52040498
  41. 0000007A  A8FD                     trap       PrGlue
  42. 0000007C  3F38 0944                move.w     -[A7], [0x00000944 /* PrintErr */]
  43. 00000080  6708                     beq        +0xA /* 0000008A */
  44. 00000082  487A 003A                pea.l      [PC + 0x3A /* 000000BE */]
  45. 00000086  4EAD 0CD2                jsr        [A5 + 0xCD2]
  46. label0000008A:
  47. 0000008A  548F                     addq.l     A7, 2
  48. 0000008C  4FEF 0002                lea.l      A7, [A7 + 0x2]
  49. label00000090:
  50. 00000090  2F3C D000 0000           move.l     -[A7], 0xD0000000
  51. 00000096  A8FD                     trap       PrGlue
  52. 00000098  3F38 0944                move.w     -[A7], [0x00000944 /* PrintErr */]
  53. 0000009C  6708                     beq        +0xA /* 000000A6 */
  54. 0000009E  487A 001E                pea.l      [PC + 0x1E /* 000000BE */]
  55. 000000A2  4EAD 0CD2                jsr        [A5 + 0xCD2]
  56. label000000A6:
  57. 000000A6  548F                     addq.l     A7, 2
  58. label000000A8:
  59. 000000A8  2F0A                     move.l     -[A7], A2
  60. 000000AA  4EAD 0ACA                jsr        [A5 + 0xACA]
  61. 000000AE  4CDF 070F                movem.l    A2,A1,A0,D3,D2,D1,D0, [A7]+
  62. 000000B2  4E5E                     unlink     A6
  63. 000000B4  2F57 0004                move.l     [A7 + 0x4], [A7]
  64. 000000B8  4FEF 0004                lea.l      A7, [A7 + 0x4]
  65. 000000BC  4E75                     rts
  66. 000000BE  8B53                     or.w       [A3], D5
  67. 000000C0  4554                     chk.w      D2, [A4]
  68. 000000C2  5041                     addq.w     D1, 8
  69. 000000C4  4745                     chk.w      D3, D5
  70. 000000C6  5349                     subq.w     A1, 1
  71. 000000C8  5A45                     addq.w     D5, 5
  72. 000000CA  0000 4E56                ori.b      D0, 0x56 /* 'V' */
  73. export_310: // at 000000CC (misaligned)
  74. 000000CE  FFCE                     .extension 0xFCE // unimplemented
  75. 000000D0  48E7 F0E0                movem.l    -[A7], D0,D1,D2,D3,A0,A1,A2
  76. 000000D4  246E 0014                movea.l    A2, [A6 + 0x14]
  77. 000000D8  422E FFCF                clr.b      [A6 - 0x31]
  78. 000000DC  422E FFD3                clr.b      [A6 - 0x2D]
  79. 000000E0  422E FFD2                clr.b      [A6 - 0x2E]
  80. 000000E4  422E FFD1                clr.b      [A6 - 0x2F]
  81. 000000E8  422E FFD0                clr.b      [A6 - 0x30]
  82. 000000EC  422A 03A3                clr.b      [A2 + 0x3A3]
  83. 000000F0  422A 03A4                clr.b      [A2 + 0x3A4]
  84. 000000F4  422A 03A5                clr.b      [A2 + 0x3A5]
  85. 000000F8  41EA 01C2                lea.l      A0, [A2 + 0x1C2]
  86. 000000FC  7079                     moveq.l    D0, 0x79
  87. label000000FE:
  88. 000000FE  4218                     clr.b      [A0]+
  89. 00000100  51C8 FFFC                dbf        D0, -0x6 /* 000000FE */
  90. 00000104  0C6E 0000 0008           cmpi.w     [A6 + 0x8], 0x0
  91. 0000010A  6700 02D6                beq        +0x2D8 /* 000003E2 */
  92. 0000010E  3D7C FFCF 0018           move.w     [A6 + 0x18], 0xFFCF
  93. 00000114  41EA 01C2                lea.l      A0, [A2 + 0x1C2]
  94. 00000118  316A 00BC 0016           move.w     [A0 + 0x16], [A2 + 0xBC]
  95. 0000011E  43EA 00BE                lea.l      A1, [A2 + 0xBE]
  96. 00000122  2149 0012                move.l     [A0 + 0x12], A1
  97. 00000126  A20C                     trap       GetFileInfo/PBHGetFInfo/HGetFileInfo, flags=2
  98. 00000128  0C40 FFD5                cmpi.w     D0, 0xFFD5
  99. 0000012C  6700 02A4                beq        +0x2A6 /* 000003D2 */
  100. 00000130  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  101. 00000134  6708                     beq        +0xA /* 0000013E */
  102. 00000136  487A 08CC                pea.l      [PC + 0x8CC /* 00000A04 */]
  103. 0000013A  4EAD 0CD2                jsr        [A5 + 0xCD2]
  104. label0000013E:
  105. 0000013E  548F                     addq.l     A7, 2
  106. 00000140  0828 0007 001E           btst.b     [A0 + 0x1E], 0x7
  107. 00000146  6600 07D8                bne        +0x7DA /* 00000920 */
  108. 0000014A  3D7C FFD7 0018           move.w     [A6 + 0x18], 0xFFD7
  109. 00000150  0CA8 0000 8000 0036      cmpi.l     [A0 + 0x36], 0x8000
  110. 00000158  6400 07C6                bcc        +0x7C8 /* 00000920 */
  111. 0000015C  4FEF FFFE                lea.l      A7, [A7 - 0x2]
  112. 00000160  2F28 0036                move.l     -[A7], [A0 + 0x36]
  113. 00000164  486E FFD4                pea.l      [A6 - 0x2C]
  114. 00000168  4EAD 0C62                jsr        [A5 + 0xC62]
  115. 0000016C  301F                     move.w     D0, [A7]+
  116. 0000016E  6600 07B0                bne        +0x7B2 /* 00000920 */
  117. 00000172  1D78 0001 FFD3           move.b     [A6 - 0x2D], [0x00000001]
  118. 00000178  08EA 0000 00BB           bset.b     [A2 + 0xBB], 0x0
  119. 0000017E  41EA 01C2                lea.l      A0, [A2 + 0x1C2]
  120. 00000182  42A8 001C                clr.l      [A0 + 0x1C]
  121. 00000186  42A8 0030                clr.l      [A0 + 0x30]
  122. 0000018A  103C 0003                move.b     D0, 0x3
  123. 0000018E  426A 03A6                clr.w      [A2 + 0x3A6]
  124. 00000192  082A 0000 00B8           btst.b     [A2 + 0xB8], 0x0
  125. 00000198  6704                     beq        +0x6 /* 0000019E */
  126. label0000019A:
  127. 0000019A  103C 0001                move.b     D0, 0x1
  128. label0000019E:
  129. 0000019E  1140 001B                move.b     [A0 + 0x1B], D0
  130. 000001A2  A200                     trap       OpenSlot, flags=2
  131. 000001A4  4A00                     tst.b      D0
  132. 000001A6  670C                     beq        +0xE /* 000001B4 */
  133. 000001A8  422E FFCF                clr.b      [A6 - 0x31]
  134. 000001AC  08EA 0000 00B8           bset.b     [A2 + 0xB8], 0x0
  135. 000001B2  67E6                     beq        -0x18 /* 0000019A */
  136. label000001B4:
  137. 000001B4  3D40 0018                move.w     [A6 + 0x18], D0
  138. 000001B8  6600 0766                bne        +0x768 /* 00000920 */
  139. 000001BC  1D7C 0001 FFD2           move.b     [A6 - 0x2E], 0x1
  140. 000001C2  156A 00B8 00BA           move.b     [A2 + 0xBA], [A2 + 0xB8]
  141. 000001C8  2028 0036                move.l     D0, [A0 + 0x36]
  142. 000001CC  2140 0024                move.l     [A0 + 0x24], D0
  143. 000001D0  2D40 FFE2                move.l     [A6 - 0x1E], D0
  144. 000001D4  206E FFD4                movea.l    A0, [A6 - 0x2C]
  145. 000001D8  A029                     trap       HLock
  146. 000001DA  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  147. 000001DE  6708                     beq        +0xA /* 000001E8 */
  148. 000001E0  487A 0822                pea.l      [PC + 0x822 /* 00000A04 */]
  149. 000001E4  4EAD 0CD2                jsr        [A5 + 0xCD2]
  150. label000001E8:
  151. 000001E8  548F                     addq.l     A7, 2
  152. 000001EA  206E FFD4                movea.l    A0, [A6 - 0x2C]
  153. 000001EE  2250                     movea.l    A1, [A0]
  154. 000001F0  41EA 01C2                lea.l      A0, [A2 + 0x1C2]
  155. 000001F4  2149 0020                move.l     [A0 + 0x20], A1
  156. 000001F8  4268 002C                clr.w      [A0 + 0x2C]
  157. 000001FC  A002                     trap       Read
  158. 000001FE  3F00                     move.w     -[A7], D0
  159. 00000200  6700 000A                beq        +0xC /* 0000020C */
  160. 00000204  487A 07FE                pea.l      [PC + 0x7FE /* 00000A04 */]
  161. 00000208  4EAD 0CD2                jsr        [A5 + 0xCD2]
  162. label0000020C:
  163. 0000020C  548F                     addq.l     A7, 2
  164. 0000020E  206E FFD4                movea.l    A0, [A6 - 0x2C]
  165. 00000212  2250                     movea.l    A1, [A0]
  166. 00000214  41EA 01C2                lea.l      A0, [A2 + 0x1C2]
  167. 00000218  2149 0020                move.l     [A0 + 0x20], A1
  168. 0000021C  4268 002C                clr.w      [A0 + 0x2C]
  169. 00000220  217C 0000 0001 0024      move.l     [A0 + 0x24], 0x1
  170. 00000228  42A8 002E                clr.l      [A0 + 0x2E]
  171. 0000022C  317C 0001 002C           move.w     [A0 + 0x2C], 0x1
  172. 00000232  A003                     trap       Write
  173. 00000234  0C40 FFD3                cmpi.w     D0, 0xFFD3
  174. 00000238  673C                     beq        +0x3E /* 00000276 */
  175. 0000023A  0C40 FFD2                cmpi.w     D0, 0xFFD2
  176. 0000023E  6736                     beq        +0x38 /* 00000276 */
  177. 00000240  0C40 FFD4                cmpi.w     D0, 0xFFD4
  178. 00000244  6730                     beq        +0x32 /* 00000276 */
  179. 00000246  0C40 FFC3                cmpi.w     D0, 0xFFC3
  180. 0000024A  672A                     beq        +0x2C /* 00000276 */
  181. 0000024C  3F00                     move.w     -[A7], D0
  182. 0000024E  6700 000A                beq        +0xC /* 0000025A */
  183. 00000252  487A 07B0                pea.l      [PC + 0x7B0 /* 00000A04 */]
  184. 00000256  4EAD 0CD2                jsr        [A5 + 0xCD2]
  185. label0000025A:
  186. 0000025A  548F                     addq.l     A7, 2
  187. 0000025C  216E FFE2 001C           move.l     [A0 + 0x1C], [A6 - 0x1E]
  188. 00000262  A012                     trap       SetEOF
  189. 00000264  3F00                     move.w     -[A7], D0
  190. 00000266  6700 000A                beq        +0xC /* 00000272 */
  191. 0000026A  487A 0798                pea.l      [PC + 0x798 /* 00000A04 */]
  192. 0000026E  4EAD 0CD2                jsr        [A5 + 0xCD2]
  193. label00000272:
  194. 00000272  548F                     addq.l     A7, 2
  195. 00000274  600A                     bra        +0xC /* 00000280 */
  196. label00000276:
  197. 00000276  422E FFCF                clr.b      [A6 - 0x31]
  198. 0000027A  157C 0001 00B8           move.b     [A2 + 0xB8], 0x1
  199. label00000280:
  200. 00000280  206E FFD4                movea.l    A0, [A6 - 0x2C]
  201. 00000284  A02A                     trap       HUnlock
  202. 00000286  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  203. 0000028A  6708                     beq        +0xA /* 00000294 */
  204. 0000028C  487A 0776                pea.l      [PC + 0x776 /* 00000A04 */]
  205. 00000290  4EAD 0CD2                jsr        [A5 + 0xCD2]
  206. label00000294:
  207. 00000294  548F                     addq.l     A7, 2
  208. 00000296  157C 0001 01BF           move.b     [A2 + 0x1BF], 0x1
  209. 0000029C  4FEF FFFE                lea.l      A7, [A7 - 0x2]
  210. 000002A0  486A 00BE                pea.l      [A2 + 0xBE]
  211. 000002A4  3F2A 00BC                move.w     -[A7], [A2 + 0xBC]
  212. 000002A8  4227                     clr.b      -[A7]
  213. 000002AA  A9C4                     trap       OpenRFPerm
  214. 000002AC  301F                     move.w     D0, [A7]+
  215. 000002AE  4A78 0A60                tst.w      [0x00000A60 /* ResErr */]
  216. 000002B2  6700 0084                beq        +0x86 /* 00000338 */
  217. 000002B6  0C78 FFD9 0A60           cmpi.w     [0x00000A60 /* ResErr */], 0xFFD9
  218. 000002BC  6718                     beq        +0x1A /* 000002D6 */
  219. 000002BE  0C78 FF3F 0A60           cmpi.w     [0x00000A60 /* ResErr */], 0xFF3F
  220. 000002C4  6710                     beq        +0x12 /* 000002D6 */
  221. 000002C6  3F38 0A60                move.w     -[A7], [0x00000A60 /* ResErr */]
  222. 000002CA  6708                     beq        +0xA /* 000002D4 */
  223. 000002CC  487A 0736                pea.l      [PC + 0x736 /* 00000A04 */]
  224. 000002D0  4EAD 0CD2                jsr        [A5 + 0xCD2]
  225. label000002D4:
  226. 000002D4  548F                     addq.l     A7, 2
  227. label000002D6:
  228. 000002D6  422A 01BF                clr.b      [A2 + 0x1BF]
  229. 000002DA  4FEF FFFE                lea.l      A7, [A7 - 0x2]
  230. 000002DE  4EBA 07C4                jsr        [PC + 0x7C4 /* 00000AA4 */]
  231. 000002E2  3D5F FFF0                move.w     [A6 - 0x10], [A7]+
  232. 000002E6  3F2A 00BC                move.w     -[A7], [A2 + 0xBC]
  233. 000002EA  4EBA 074C                jsr        [PC + 0x74C /* 00000A38 */]
  234. 000002EE  486A 00BE                pea.l      [A2 + 0xBE]
  235. 000002F2  A9B1                     trap       CreateResFile
  236. 000002F4  0C78 FFC3 0A60           cmpi.w     [0x00000A60 /* ResErr */], 0xFFC3
  237. 000002FA  6700 00E6                beq        +0xE8 /* 000003E2 */
  238. 000002FE  3F38 0A60                move.w     -[A7], [0x00000A60 /* ResErr */]
  239. 00000302  6708                     beq        +0xA /* 0000030C */
  240. 00000304  487A 06FE                pea.l      [PC + 0x6FE /* 00000A04 */]
  241. 00000308  4EAD 0CD2                jsr        [A5 + 0xCD2]
  242. label0000030C:
  243. 0000030C  548F                     addq.l     A7, 2
  244. 0000030E  4FEF FFFE                lea.l      A7, [A7 - 0x2]
  245. 00000312  486A 00BE                pea.l      [A2 + 0xBE]
  246. 00000316  A997                     trap       OpenResFile
  247. 00000318  3F38 0A60                move.w     -[A7], [0x00000A60 /* ResErr */]
  248. 0000031C  6708                     beq        +0xA /* 00000326 */
  249. 0000031E  487A 06E4                pea.l      [PC + 0x6E4 /* 00000A04 */]
  250. 00000322  4EAD 0CD2                jsr        [A5 + 0xCD2]
  251. label00000326:
  252. 00000326  548F                     addq.l     A7, 2
  253. 00000328  157C 0001 01BF           move.b     [A2 + 0x1BF], 0x1
  254. 0000032E  3F2E FFF0                move.w     -[A7], [A6 - 0x10]
  255. 00000332  4EBA 0704                jsr        [PC + 0x704 /* 00000A38 */]
  256. 00000336  301F                     move.w     D0, [A7]+
  257. label00000338:
  258. 00000338  3540 01C0                move.w     [A2 + 0x1C0], D0
  259. 0000033C  4FEF FFFE                lea.l      A7, [A7 - 0x2]
  260. 00000340  2F3C 5052 4C57           move.l     -[A7], 0x50524C57 /* 'PRLW' */
  261. 00000346  A80D                     trap       Count1Resources
  262. 00000348  3F38 0A60                move.w     -[A7], [0x00000A60 /* ResErr */]
  263. 0000034C  6708                     beq        +0xA /* 00000356 */
  264. 0000034E  487A 06B4                pea.l      [PC + 0x6B4 /* 00000A04 */]
  265. 00000352  4EAD 0CD2                jsr        [A5 + 0xCD2]
  266. label00000356:
  267. 00000356  548F                     addq.l     A7, 2
  268. 00000358  301F                     move.w     D0, [A7]+
  269. 0000035A  6700 0086                beq        +0x88 /* 000003E2 */
  270. 0000035E  4FEF FFFC                lea.l      A7, [A7 - 0x4]
  271. 00000362  2F3C 5052 4C57           move.l     -[A7], 0x50524C57 /* 'PRLW' */
  272. 00000368  3F3C 0081                move.w     -[A7], 0x81
  273. 0000036C  A81F                     trap       Get1Resource
  274. 0000036E  3F38 0A60                move.w     -[A7], [0x00000A60 /* ResErr */]
  275. 00000372  6708                     beq        +0xA /* 0000037C */
  276. 00000374  487A 068E                pea.l      [PC + 0x68E /* 00000A04 */]
  277. 00000378  4EAD 0CD2                jsr        [A5 + 0xCD2]
  278. label0000037C:
  279. 0000037C  548F                     addq.l     A7, 2
  280. 0000037E  0C78 FF40 0A60           cmpi.w     [0x00000A60 /* ResErr */], 0xFF40
  281. 00000384  6700 005C                beq        +0x5E /* 000003E2 */
  282. 00000388  205F                     movea.l    A0, [A7]+
  283. 0000038A  2548 0348                move.l     [A2 + 0x348], A0
  284. 0000038E  A029                     trap       HLock
  285. 00000390  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  286. 00000394  6708                     beq        +0xA /* 0000039E */
  287. 00000396  487A 066C                pea.l      [PC + 0x66C /* 00000A04 */]
  288. 0000039A  4EAD 0CD2                jsr        [A5 + 0xCD2]
  289. label0000039E:
  290. 0000039E  548F                     addq.l     A7, 2
  291. 000003A0  2250                     movea.l    A1, [A0]
  292. 000003A2  0C69 0001 0078           cmpi.w     [A1 + 0x78], 0x1
  293. 000003A8  6E38                     bgt        +0x3A /* 000003E2 */
  294. 000003AA  A02A                     trap       HUnlock
  295. 000003AC  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  296. 000003B0  6708                     beq        +0xA /* 000003BA */
  297. 000003B2  487A 0650                pea.l      [PC + 0x650 /* 00000A04 */]
  298. 000003B6  4EAD 0CD2                jsr        [A5 + 0xCD2]
  299. label000003BA:
  300. 000003BA  548F                     addq.l     A7, 2
  301. 000003BC  A04A                     trap       HNoPurge
  302. 000003BE  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  303. 000003C2  6708                     beq        +0xA /* 000003CC */
  304. 000003C4  487A 063E                pea.l      [PC + 0x63E /* 00000A04 */]
  305. 000003C8  4EAD 0CD2                jsr        [A5 + 0xCD2]
  306. label000003CC:
  307. 000003CC  548F                     addq.l     A7, 2
  308. 000003CE  6000 00FC                bra        +0xFE /* 000004CC */
  309. label000003D2:
  310. 000003D2  0C6E 0001 0008           cmpi.w     [A6 + 0x8], 0x1
  311. 000003D8  6608                     bne        +0xA /* 000003E2 */
  312. 000003DA  3D40 0018                move.w     [A6 + 0x18], D0
  313. 000003DE  6000 0540                bra        +0x542 /* 00000920 */
  314. label000003E2:
  315. 000003E2  4278 0A60                clr.w      [0x00000A60 /* ResErr */]
  316. 000003E6  4FEF FFFE                lea.l      A7, [A7 - 0x2]
  317. 000003EA  A994                     trap       CurResFile
  318. 000003EC  3F38 0A60                move.w     -[A7], [0x00000A60 /* ResErr */]
  319. 000003F0  6708                     beq        +0xA /* 000003FA */
  320. 000003F2  487A 0610                pea.l      [PC + 0x610 /* 00000A04 */]
  321. 000003F6  4EAD 0CD2                jsr        [A5 + 0xCD2]
  322. label000003FA:
  323. 000003FA  548F                     addq.l     A7, 2
  324. 000003FC  3D5F FFEE                move.w     [A6 - 0x12], [A7]+
  325. 00000400  3F2D FDE0                move.w     -[A7], [A5 - 0x220]
  326. 00000404  A998                     trap       UseResFile
  327. 00000406  3F38 0A60                move.w     -[A7], [0x00000A60 /* ResErr */]
  328. 0000040A  6708                     beq        +0xA /* 00000414 */
  329. 0000040C  487A 05F6                pea.l      [PC + 0x5F6 /* 00000A04 */]
  330. 00000410  4EAD 0CD2                jsr        [A5 + 0xCD2]
  331. label00000414:
  332. 00000414  548F                     addq.l     A7, 2
  333. 00000416  4FEF FFFC                lea.l      A7, [A7 - 0x4]
  334. 0000041A  2F3C 5052 4C57           move.l     -[A7], 0x50524C57 /* 'PRLW' */
  335. 00000420  3F3C 0081                move.w     -[A7], 0x81
  336. 00000424  A81F                     trap       Get1Resource
  337. 00000426  3F38 0A60                move.w     -[A7], [0x00000A60 /* ResErr */]
  338. 0000042A  6708                     beq        +0xA /* 00000434 */
  339. 0000042C  487A 05D6                pea.l      [PC + 0x5D6 /* 00000A04 */]
  340. 00000430  4EAD 0CD2                jsr        [A5 + 0xCD2]
  341. label00000434:
  342. 00000434  548F                     addq.l     A7, 2
  343. 00000436  2057                     movea.l    A0, [A7]
  344. 00000438  A9E1                     trap       HandToHand
  345. 0000043A  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  346. 0000043E  6708                     beq        +0xA /* 00000448 */
  347. 00000440  487A 05C2                pea.l      [PC + 0x5C2 /* 00000A04 */]
  348. 00000444  4EAD 0CD2                jsr        [A5 + 0xCD2]
  349. label00000448:
  350. 00000448  548F                     addq.l     A7, 2
  351. 0000044A  2548 0348                move.l     [A2 + 0x348], A0
  352. 0000044E  A04A                     trap       HNoPurge
  353. 00000450  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  354. 00000454  6708                     beq        +0xA /* 0000045E */
  355. 00000456  487A 05AC                pea.l      [PC + 0x5AC /* 00000A04 */]
  356. 0000045A  4EAD 0CD2                jsr        [A5 + 0xCD2]
  357. label0000045E:
  358. 0000045E  548F                     addq.l     A7, 2
  359. 00000460  A9A3                     trap       ReleaseResource
  360. 00000462  3F38 0A60                move.w     -[A7], [0x00000A60 /* ResErr */]
  361. 00000466  6708                     beq        +0xA /* 00000470 */
  362. 00000468  487A 059A                pea.l      [PC + 0x59A /* 00000A04 */]
  363. 0000046C  4EAD 0CD2                jsr        [A5 + 0xCD2]
  364. label00000470:
  365. 00000470  548F                     addq.l     A7, 2
  366. 00000472  3F2E FFEE                move.w     -[A7], [A6 - 0x12]
  367. 00000476  A998                     trap       UseResFile
  368. 00000478  3F38 0A60                move.w     -[A7], [0x00000A60 /* ResErr */]
  369. 0000047C  6708                     beq        +0xA /* 00000486 */
  370. 0000047E  487A 0584                pea.l      [PC + 0x584 /* 00000A04 */]
  371. 00000482  4EAD 0CD2                jsr        [A5 + 0xCD2]
  372. label00000486:
  373. 00000486  548F                     addq.l     A7, 2
  374. 00000488  082A 0000 01BF           btst.b     [A2 + 0x1BF], 0x0
  375. 0000048E  6700 003C                beq        +0x3E /* 000004CC */
  376. 00000492  3F2A 01C0                move.w     -[A7], [A2 + 0x1C0]
  377. 00000496  A998                     trap       UseResFile
  378. 00000498  3F38 0A60                move.w     -[A7], [0x00000A60 /* ResErr */]
  379. 0000049C  6708                     beq        +0xA /* 000004A6 */
  380. 0000049E  487A 0564                pea.l      [PC + 0x564 /* 00000A04 */]
  381. 000004A2  4EAD 0CD2                jsr        [A5 + 0xCD2]
  382. label000004A6:
  383. 000004A6  548F                     addq.l     A7, 2
  384. 000004A8  2F2A 0348                move.l     -[A7], [A2 + 0x348]
  385. 000004AC  2F3C 5052 4C57           move.l     -[A7], 0x50524C57 /* 'PRLW' */
  386. 000004B2  3F3C 0081                move.w     -[A7], 0x81
  387. 000004B6  487A 056C                pea.l      [PC + 0x56C /* 00000A24 */]
  388. 000004BA  A9AB                     trap       AddResource
  389. 000004BC  3F38 0A60                move.w     -[A7], [0x00000A60 /* ResErr */]
  390. 000004C0  6708                     beq        +0xA /* 000004CA */
  391. 000004C2  487A 0540                pea.l      [PC + 0x540 /* 00000A04 */]
  392. 000004C6  4EAD 0CD2                jsr        [A5 + 0xCD2]
  393. label000004CA:
  394. 000004CA  548F                     addq.l     A7, 2
  395. label000004CC:
  396. 000004CC  1D78 01BF FFD1           move.b     [A6 - 0x2F], [0x000001BF]
  397. 000004D2  42AA 0360                clr.l      [A2 + 0x360]
  398. 000004D6  42AA 0364                clr.l      [A2 + 0x364]
  399. 000004DA  42AA 0368                clr.l      [A2 + 0x368]
  400. 000004DE  42AA 036C                clr.l      [A2 + 0x36C]
  401. 000004E2  43ED FDB2                lea.l      A1, [A5 - 0x24E]
  402. 000004E6  2549 0386                move.l     [A2 + 0x386], A1
  403. 000004EA  43ED FDB6                lea.l      A1, [A5 - 0x24A]
  404. 000004EE  2549 038A                move.l     [A2 + 0x38A], A1
  405. 000004F2  157C 0001 0382           move.b     [A2 + 0x382], 0x1
  406. 000004F8  157C 0001 0384           move.b     [A2 + 0x384], 0x1
  407. 000004FE  157C 0001 0383           move.b     [A2 + 0x383], 0x1
  408. 00000504  357C 0064 00A0           move.w     [A2 + 0xA0], 0x64 /* 'd' */
  409. 0000050A  357C 0064 00A2           move.w     [A2 + 0xA2], 0x64 /* 'd' */
  410. 00000510  206A 0348                movea.l    A0, [A2 + 0x348]
  411. 00000514  A029                     trap       HLock
  412. 00000516  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  413. 0000051A  6708                     beq        +0xA /* 00000524 */
  414. 0000051C  487A 04E6                pea.l      [PC + 0x4E6 /* 00000A04 */]
  415. 00000520  4EAD 0CD2                jsr        [A5 + 0xCD2]
  416. label00000524:
  417. 00000524  548F                     addq.l     A7, 2
  418. 00000526  2250                     movea.l    A1, [A0]
  419. 00000528  2029 007A                move.l     D0, [A1 + 0x7A]
  420. 0000052C  2D40 FFF8                move.l     [A6 - 0x8], D0
  421. 00000530  2D69 007E FFFC           move.l     [A6 - 0x4], [A1 + 0x7E]
  422. 00000536  D16E FFFE                add.w      [A6 - 0x2], D0
  423. 0000053A  4840                     swap.w     D0
  424. 0000053C  D16E FFFC                add.w      [A6 - 0x4], D0
  425. 00000540  4FEF FFFC                lea.l      A7, [A7 - 0x4]
  426. 00000544  2F0A                     move.l     -[A7], A2
  427. 00000546  486E FFF8                pea.l      [A6 - 0x8]
  428. 0000054A  486A 00BE                pea.l      [A2 + 0xBE]
  429. 0000054E  4267                     clr.w      -[A7]
  430. 00000550  3F3C 0008                move.w     -[A7], 0x8
  431. 00000554  2F3C FFFF FFFF           move.l     -[A7], 0xFFFFFFFF
  432. 0000055A  1F2E 000A                move.b     -[A7], [A6 + 0xA]
  433. 0000055E  42A7                     clr.l      -[A7]
  434. 00000560  A913                     trap       NewWindow
  435. 00000562  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  436. 00000566  6708                     beq        +0xA /* 00000570 */
  437. 00000568  487A 049A                pea.l      [PC + 0x49A /* 00000A04 */]
  438. 0000056C  4EAD 0CD2                jsr        [A5 + 0xCD2]
  439. label00000570:
  440. 00000570  548F                     addq.l     A7, 2
  441. 00000572  1D7C 0001 FFD0           move.b     [A6 - 0x30], 0x1
  442. 00000578  4FEF 0004                lea.l      A7, [A7 + 0x4]
  443. 0000057C  2F0A                     move.l     -[A7], A2
  444. 0000057E  A873                     trap       SetPort
  445. 00000580  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  446. 00000584  6708                     beq        +0xA /* 0000058E */
  447. 00000586  487A 047C                pea.l      [PC + 0x47C /* 00000A04 */]
  448. 0000058A  4EAD 0CD2                jsr        [A5 + 0xCD2]
  449. label0000058E:
  450. 0000058E  548F                     addq.l     A7, 2
  451. 00000590  256E 0010 0098           move.l     [A2 + 0x98], [A6 + 0x10]
  452. 00000596  226A 0348                movea.l    A1, [A2 + 0x348]
  453. 0000059A  2251                     movea.l    A1, [A1]
  454. 0000059C  4869 00A6                pea.l      [A1 + 0xA6]
  455. 000005A0  486E FFF6                pea.l      [A6 - 0xA]
  456. 000005A4  A900                     trap       GetFNum
  457. 000005A6  0C78 FF40 0A60           cmpi.w     [0x00000A60 /* ResErr */], 0xFF40
  458. 000005AC  6748                     beq        +0x4A /* 000005F6 */
  459. 000005AE  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  460. 000005B2  6708                     beq        +0xA /* 000005BC */
  461. 000005B4  487A 044E                pea.l      [PC + 0x44E /* 00000A04 */]
  462. 000005B8  4EAD 0CD2                jsr        [A5 + 0xCD2]
  463. label000005BC:
  464. 000005BC  548F                     addq.l     A7, 2
  465. 000005BE  4A6E FFF6                tst.w      [A6 - 0xA]
  466. 000005C2  6732                     beq        +0x34 /* 000005F6 */
  467. 000005C4  3F2E FFF6                move.w     -[A7], [A6 - 0xA]
  468. 000005C8  A887                     trap       TextFont
  469. 000005CA  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  470. 000005CE  6708                     beq        +0xA /* 000005D8 */
  471. 000005D0  487A 0432                pea.l      [PC + 0x432 /* 00000A04 */]
  472. 000005D4  4EAD 0CD2                jsr        [A5 + 0xCD2]
  473. label000005D8:
  474. 000005D8  548F                     addq.l     A7, 2
  475. 000005DA  226A 0348                movea.l    A1, [A2 + 0x348]
  476. 000005DE  2251                     movea.l    A1, [A1]
  477. 000005E0  3F29 00A4                move.w     -[A7], [A1 + 0xA4]
  478. 000005E4  A88A                     trap       TextSize
  479. 000005E6  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  480. 000005EA  6708                     beq        +0xA /* 000005F4 */
  481. 000005EC  487A 0416                pea.l      [PC + 0x416 /* 00000A04 */]
  482. 000005F0  4EAD 0CD2                jsr        [A5 + 0xCD2]
  483. label000005F4:
  484. 000005F4  548F                     addq.l     A7, 2
  485. label000005F6:
  486. 000005F6  2D6A 0010 FFF8           move.l     [A6 - 0x8], [A2 + 0x10]
  487. 000005FC  2D6A 0014 FFFC           move.l     [A6 - 0x4], [A2 + 0x14]
  488. 00000602  066E 0014 FFF8           addi.w     [A6 - 0x8], 0x14
  489. 00000608  586E FFFA                addq.w     [A6 - 0x6], 4
  490. 0000060C  046E 000F FFFE           subi.w     [A6 - 0x2], 0xF
  491. 00000612  046E 000F FFFC           subi.w     [A6 - 0x4], 0xF
  492. 00000618  4FEF FFFC                lea.l      A7, [A7 - 0x4]
  493. 0000061C  486E FFF8                pea.l      [A6 - 0x8]
  494. 00000620  486E FFF8                pea.l      [A6 - 0x8]
  495. 00000624  A83E                     trap       TEStyleNew
  496. 00000626  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  497. 0000062A  6708                     beq        +0xA /* 00000634 */
  498. 0000062C  487A 03D6                pea.l      [PC + 0x3D6 /* 00000A04 */]
  499. 00000630  4EAD 0CD2                jsr        [A5 + 0xCD2]
  500. label00000634:
  501. 00000634  548F                     addq.l     A7, 2
  502. 00000636  205F                     movea.l    A0, [A7]+
  503. 00000638  2250                     movea.l    A1, [A0]
  504. 0000063A  137C 0001 0047           move.b     [A1 + 0x47], 0x1
  505. 00000640  2548 023C                move.l     [A2 + 0x23C], A0
  506. 00000644  2D48 FFF2                move.l     [A6 - 0xE], A0
  507. 00000648  206A 0348                movea.l    A0, [A2 + 0x348]
  508. 0000064C  A02A                     trap       HUnlock
  509. 0000064E  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  510. 00000652  6708                     beq        +0xA /* 0000065C */
  511. 00000654  487A 03AE                pea.l      [PC + 0x3AE /* 00000A04 */]
  512. 00000658  4EAD 0CD2                jsr        [A5 + 0xCD2]
  513. label0000065C:
  514. 0000065C  548F                     addq.l     A7, 2
  515. 0000065E  426E FFF8                clr.w      [A6 - 0x8]
  516. 00000662  426E FFFA                clr.w      [A6 - 0x6]
  517. 00000666  3D7C 0010 FFFC           move.w     [A6 - 0x4], 0x10
  518. 0000066C  3D7C 0010 FFFE           move.w     [A6 - 0x2], 0x10
  519. 00000672  4FEF FFFC                lea.l      A7, [A7 - 0x4]
  520. 00000676  2F0A                     move.l     -[A7], A2
  521. 00000678  486E FFF8                pea.l      [A6 - 0x8]
  522. 0000067C  487A 039E                pea.l      [PC + 0x39E /* 00000A1C, pstring "hi mike" */]
  523. 00000680  3F3C 0100                move.w     -[A7], 0x100
  524. 00000684  4267                     clr.w      -[A7]
  525. 00000686  4267                     clr.w      -[A7]
  526. 00000688  4267                     clr.w      -[A7]
  527. 0000068A  3F3C 0010                move.w     -[A7], 0x10
  528. 0000068E  486D 03AA                pea.l      [A5 + 0x3AA]
  529. 00000692  A954                     trap       NewControl
  530. 00000694  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  531. 00000698  6708                     beq        +0xA /* 000006A2 */
  532. 0000069A  487A 0368                pea.l      [PC + 0x368 /* 00000A04 */]
  533. 0000069E  4EAD 0CD2                jsr        [A5 + 0xCD2]
  534. label000006A2:
  535. 000006A2  548F                     addq.l     A7, 2
  536. 000006A4  4FEF 0004                lea.l      A7, [A7 + 0x4]
  537. 000006A8  4FEF FFFC                lea.l      A7, [A7 - 0x4]
  538. 000006AC  2F0A                     move.l     -[A7], A2
  539. 000006AE  486E FFF8                pea.l      [A6 - 0x8]
  540. 000006B2  487A 0368                pea.l      [PC + 0x368 /* 00000A1C, pstring "hi mike" */]
  541. 000006B6  3F3C 0100                move.w     -[A7], 0x100
  542. 000006BA  4267                     clr.w      -[A7]
  543. 000006BC  4267                     clr.w      -[A7]
  544. 000006BE  4267                     clr.w      -[A7]
  545. 000006C0  3F3C 0010                move.w     -[A7], 0x10
  546. 000006C4  486D 0C2A                pea.l      [A5 + 0xC2A]
  547. 000006C8  A954                     trap       NewControl
  548. 000006CA  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  549. 000006CE  6708                     beq        +0xA /* 000006D8 */
  550. 000006D0  487A 0332                pea.l      [PC + 0x332 /* 00000A04 */]
  551. 000006D4  4EAD 0CD2                jsr        [A5 + 0xCD2]
  552. label000006D8:
  553. 000006D8  548F                     addq.l     A7, 2
  554. 000006DA  4FEF 0004                lea.l      A7, [A7 + 0x4]
  555. 000006DE  2F0A                     move.l     -[A7], A2
  556. 000006E0  4EBA F91E                jsr        [PC - 0x6E2 /* 00000000 */]
  557. 000006E4  2F0A                     move.l     -[A7], A2
  558. 000006E6  4EAD 09BA                jsr        [A5 + 0x9BA]
  559. 000006EA  082A 0000 00BB           btst.b     [A2 + 0xBB], 0x0
  560. 000006F0  6700 00C4                beq        +0xC6 /* 000007B6 */
  561. 000006F4  486E FFE6                pea.l      [A6 - 0x1A]
  562. 000006F8  A88B                     trap       GetFontInfo
  563. 000006FA  362E FFE6                move.w     D3, [A6 - 0x1A]
  564. 000006FE  D66E FFE8                add.w      D3, [A6 - 0x18]
  565. 00000702  D66E FFEC                add.w      D3, [A6 - 0x14]
  566. 00000706  202E FFE2                move.l     D0, [A6 - 0x1E]
  567. 0000070A  206E FFD4                movea.l    A0, [A6 - 0x2C]
  568. 0000070E  7200                     moveq.l    D1, 0x00
  569. 00000710  740D                     moveq.l    D2, 0x0D
  570. 00000712  2250                     movea.l    A1, [A0]
  571. 00000714  5340                     subq.w     D0, 1
  572. label00000716:
  573. 00000716  B419                     cmp.b      D2, [A1]+
  574. 00000718  57C8 FFFC                dbeq       D0, -0x6 /* 00000716 */
  575. 0000071C  6606                     bne        +0x8 /* 00000724 */
  576. 0000071E  5281                     addq.l     D1, 1
  577. 00000720  51C8 FFF4                dbf        D0, -0xE /* 00000716 */
  578. label00000724:
  579. 00000724  3D7C FFDC 0018           move.w     [A6 + 0x18], 0xFFDC
  580. 0000072A  C6C1                     mulu.w     D3, D1
  581. 0000072C  0C83 0000 7D00           cmpi.l     D3, 0x7D00 /* '}\0' */
  582. 00000732  6400 01EC                bcc        +0x1EE /* 00000920 */
  583. 00000736  41EA 01C2                lea.l      A0, [A2 + 0x1C2]
  584. 0000073A  2028 0036                move.l     D0, [A0 + 0x36]
  585. 0000073E  0680 0000 0C00           addi.l     D0, 0xC00
  586. 00000744  A122                     trap       NewHandle, flags=1
  587. 00000746  3D78 0220 0018           move.w     [A6 + 0x18], [0x00000220 /* MemErr */]
  588. 0000074C  6600 01D2                bne        +0x1D4 /* 00000920 */
  589. 00000750  A023                     trap       DisposHandle/DisposeHandle
  590. 00000752  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  591. 00000756  6708                     beq        +0xA /* 00000760 */
  592. 00000758  487A 02AA                pea.l      [PC + 0x2AA /* 00000A04 */]
  593. 0000075C  4EAD 0CD2                jsr        [A5 + 0xCD2]
  594. label00000760:
  595. 00000760  548F                     addq.l     A7, 2
  596. 00000762  206E FFD4                movea.l    A0, [A6 - 0x2C]
  597. 00000766  A029                     trap       HLock
  598. 00000768  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  599. 0000076C  6708                     beq        +0xA /* 00000776 */
  600. 0000076E  487A 0294                pea.l      [PC + 0x294 /* 00000A04 */]
  601. 00000772  4EAD 0CD2                jsr        [A5 + 0xCD2]
  602. label00000776:
  603. 00000776  548F                     addq.l     A7, 2
  604. 00000778  2F10                     move.l     -[A7], [A0]
  605. 0000077A  2F2E FFE2                move.l     -[A7], [A6 - 0x1E]
  606. 0000077E  2F2E FFF2                move.l     -[A7], [A6 - 0xE]
  607. 00000782  A9CF                     trap       TESetText
  608. 00000784  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  609. 00000788  6708                     beq        +0xA /* 00000792 */
  610. 0000078A  487A 0278                pea.l      [PC + 0x278 /* 00000A04 */]
  611. 0000078E  4EAD 0CD2                jsr        [A5 + 0xCD2]
  612. label00000792:
  613. 00000792  548F                     addq.l     A7, 2
  614. 00000794  4FEF FFFE                lea.l      A7, [A7 - 0x2]
  615. 00000798  2F2E FFD4                move.l     -[A7], [A6 - 0x2C]
  616. 0000079C  4EAD 0C6A                jsr        [A5 + 0xC6A]
  617. 000007A0  301F                     move.w     D0, [A7]+
  618. 000007A2  3F00                     move.w     -[A7], D0
  619. 000007A4  6700 000A                beq        +0xC /* 000007B0 */
  620. 000007A8  487A 025A                pea.l      [PC + 0x25A /* 00000A04 */]
  621. 000007AC  4EAD 0CD2                jsr        [A5 + 0xCD2]
  622. label000007B0:
  623. 000007B0  548F                     addq.l     A7, 2
  624. 000007B2  422E FFD3                clr.b      [A6 - 0x2D]
  625. label000007B6:
  626. 000007B6  2F0A                     move.l     -[A7], A2
  627. 000007B8  4EAD 09B2                jsr        [A5 + 0x9B2]
  628. 000007BC  206A 0348                movea.l    A0, [A2 + 0x348]
  629. 000007C0  2250                     movea.l    A1, [A0]
  630. 000007C2  3F29 0082                move.w     -[A7], [A1 + 0x82]
  631. 000007C6  2F2A 023C                move.l     -[A7], [A2 + 0x23C]
  632. 000007CA  4EAD 03B2                jsr        [A5 + 0x3B2]
  633. 000007CE  422A 0248                clr.b      [A2 + 0x248]
  634. 000007D2  206E FFF2                movea.l    A0, [A6 - 0xE]
  635. 000007D6  2250                     movea.l    A1, [A0]
  636. 000007D8  2569 003E 0358           move.l     [A2 + 0x358], [A1 + 0x3E]
  637. 000007DE  206A 0348                movea.l    A0, [A2 + 0x348]
  638. 000007E2  2250                     movea.l    A1, [A0]
  639. 000007E4  2429 007A                move.l     D2, [A1 + 0x7A]
  640. 000007E8  2629 007E                move.l     D3, [A1 + 0x7E]
  641. 000007EC  2F29 0084                move.l     -[A7], [A1 + 0x84]
  642. 000007F0  2F29 0088                move.l     -[A7], [A1 + 0x88]
  643. 000007F4  2F2A 023C                move.l     -[A7], [A2 + 0x23C]
  644. 000007F8  4EAD 0B12                jsr        [A5 + 0xB12]
  645. 000007FC  206A 0082                movea.l    A0, [A2 + 0x82]
  646. 00000800  A029                     trap       HLock
  647. 00000802  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  648. 00000806  6708                     beq        +0xA /* 00000810 */
  649. 00000808  487A 01FA                pea.l      [PC + 0x1FA /* 00000A04 */]
  650. 0000080C  4EAD 0CD2                jsr        [A5 + 0xCD2]
  651. label00000810:
  652. 00000810  548F                     addq.l     A7, 2
  653. 00000812  2250                     movea.l    A1, [A0]
  654. 00000814  2282                     move.l     [A1], D2
  655. 00000816  D642                     add.w      D3, D2
  656. 00000818  4842                     swap.w     D2
  657. 0000081A  4843                     swap.w     D3
  658. 0000081C  D642                     add.w      D3, D2
  659. 0000081E  4843                     swap.w     D3
  660. 00000820  2343 0004                move.l     [A1 + 0x4], D3
  661. 00000824  A02A                     trap       HUnlock
  662. 00000826  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  663. 0000082A  6708                     beq        +0xA /* 00000834 */
  664. 0000082C  487A 01D6                pea.l      [PC + 0x1D6 /* 00000A04 */]
  665. 00000830  4EAD 0CD2                jsr        [A5 + 0xCD2]
  666. label00000834:
  667. 00000834  548F                     addq.l     A7, 2
  668. 00000836  4FEF FFFC                lea.l      A7, [A7 - 0x4]
  669. 0000083A  2F0A                     move.l     -[A7], A2
  670. 0000083C  4EAD 0A92                jsr        [A5 + 0xA92]
  671. 00000840  205F                     movea.l    A0, [A7]+
  672. 00000842  2250                     movea.l    A1, [A0]
  673. 00000844  4269 0002                clr.w      [A1 + 0x2]
  674. 00000848  2F0A                     move.l     -[A7], A2
  675. 0000084A  4EAD 09AA                jsr        [A5 + 0x9AA]
  676. 0000084E  256D EB4E 00B4           move.l     [A2 + 0xB4], [A5 - 0x14B2]
  677. 00000854  52AD EB4E                addq.l     [A5 - 0x14B2], 1
  678. 00000858  41ED 0C1A                lea.l      A0, [A5 + 0xC1A]
  679. 0000085C  2548 00A8                move.l     [A2 + 0xA8], A0
  680. 00000860  2F0A                     move.l     -[A7], A2
  681. 00000862  486A 00BE                pea.l      [A2 + 0xBE]
  682. 00000866  A91A                     trap       SetWTitle
  683. 00000868  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  684. 0000086C  6708                     beq        +0xA /* 00000876 */
  685. 0000086E  487A 0194                pea.l      [PC + 0x194 /* 00000A04 */]
  686. 00000872  4EAD 0CD2                jsr        [A5 + 0xCD2]
  687. label00000876:
  688. 00000876  548F                     addq.l     A7, 2
  689. 00000878  357C 0001 00B0           move.w     [A2 + 0xB0], 0x1
  690. 0000087E  4FEF FFFC                lea.l      A7, [A7 - 0x4]
  691. 00000882  3F3C 0084                move.w     -[A7], 0x84
  692. 00000886  A9BF                     trap       GetRMenu
  693. 00000888  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  694. 0000088C  6708                     beq        +0xA /* 00000896 */
  695. 0000088E  487A 0174                pea.l      [PC + 0x174 /* 00000A04 */]
  696. 00000892  4EAD 0CD2                jsr        [A5 + 0xCD2]
  697. label00000896:
  698. 00000896  548F                     addq.l     A7, 2
  699. 00000898  2D57 FFD8                move.l     [A6 - 0x28], [A7]
  700. 0000089C  487A 017C                pea.l      [PC + 0x17C /* 00000A1A */]
  701. 000008A0  A933                     trap       AppendMenu
  702. 000008A2  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  703. 000008A6  6708                     beq        +0xA /* 000008B0 */
  704. 000008A8  487A 015A                pea.l      [PC + 0x15A /* 00000A04 */]
  705. 000008AC  4EAD 0CD2                jsr        [A5 + 0xCD2]
  706. label000008B0:
  707. 000008B0  548F                     addq.l     A7, 2
  708. 000008B2  4FEF FFFE                lea.l      A7, [A7 - 0x2]
  709. 000008B6  2F2E FFD8                move.l     -[A7], [A6 - 0x28]
  710. 000008BA  A950                     trap       CountMItems
  711. 000008BC  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  712. 000008C0  6708                     beq        +0xA /* 000008CA */
  713. 000008C2  487A 0140                pea.l      [PC + 0x140 /* 00000A04 */]
  714. 000008C6  4EAD 0CD2                jsr        [A5 + 0xCD2]
  715. label000008CA:
  716. 000008CA  548F                     addq.l     A7, 2
  717. 000008CC  301F                     move.w     D0, [A7]+
  718. 000008CE  2F2E FFD8                move.l     -[A7], [A6 - 0x28]
  719. 000008D2  3F00                     move.w     -[A7], D0
  720. 000008D4  486A 00BE                pea.l      [A2 + 0xBE]
  721. 000008D8  A947                     trap       SetMenuItemText/SetItem
  722. 000008DA  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  723. 000008DE  6708                     beq        +0xA /* 000008E8 */
  724. 000008E0  487A 0122                pea.l      [PC + 0x122 /* 00000A04 */]
  725. 000008E4  4EAD 0CD2                jsr        [A5 + 0xCD2]
  726. label000008E8:
  727. 000008E8  548F                     addq.l     A7, 2
  728. 000008EA  2F0A                     move.l     -[A7], A2
  729. 000008EC  4EAD 0ACA                jsr        [A5 + 0xACA]
  730. 000008F0  7000                     moveq.l    D0, 0x00
  731. 000008F2  A122                     trap       NewHandle, flags=1
  732. 000008F4  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  733. 000008F8  6708                     beq        +0xA /* 00000902 */
  734. 000008FA  487A 0108                pea.l      [PC + 0x108 /* 00000A04 */]
  735. 000008FE  4EAD 0CD2                jsr        [A5 + 0xCD2]
  736. label00000902:
  737. 00000902  548F                     addq.l     A7, 2
  738. 00000904  2548 039C                move.l     [A2 + 0x39C], A0
  739. 00000908  2F0A                     move.l     -[A7], A2
  740. 0000090A  A915                     trap       ShowWindow
  741. 0000090C  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  742. 00000910  6708                     beq        +0xA /* 0000091A */
  743. 00000912  487A 00F0                pea.l      [PC + 0xF0 /* 00000A04 */]
  744. 00000916  4EAD 0CD2                jsr        [A5 + 0xCD2]
  745. label0000091A:
  746. 0000091A  548F                     addq.l     A7, 2
  747. 0000091C  426E 0018                clr.w      [A6 + 0x18]
  748. label00000920:
  749. 00000920  4A6E 0018                tst.w      [A6 + 0x18]
  750. 00000924  6700 00AC                beq        +0xAE /* 000009D2 */
  751. 00000928  082E 0000 FFD3           btst.b     [A6 - 0x2D], 0x0
  752. 0000092E  671E                     beq        +0x20 /* 0000094E */
  753. 00000930  4FEF FFFE                lea.l      A7, [A7 - 0x2]
  754. 00000934  2F2E FFD4                move.l     -[A7], [A6 - 0x2C]
  755. 00000938  4EAD 0C6A                jsr        [A5 + 0xC6A]
  756. 0000093C  301F                     move.w     D0, [A7]+
  757. 0000093E  3F00                     move.w     -[A7], D0
  758. 00000940  6700 000A                beq        +0xC /* 0000094C */
  759. 00000944  487A 00BE                pea.l      [PC + 0xBE /* 00000A04 */]
  760. 00000948  4EAD 0CD2                jsr        [A5 + 0xCD2]
  761. label0000094C:
  762. 0000094C  548F                     addq.l     A7, 2
  763. label0000094E:
  764. 0000094E  082E 0000 FFD2           btst.b     [A6 - 0x2E], 0x0
  765. 00000954  6716                     beq        +0x18 /* 0000096C */
  766. 00000956  41EA 01C2                lea.l      A0, [A2 + 0x1C2]
  767. 0000095A  A001                     trap       Close
  768. 0000095C  3F00                     move.w     -[A7], D0
  769. 0000095E  6700 000A                beq        +0xC /* 0000096A */
  770. 00000962  487A 00A0                pea.l      [PC + 0xA0 /* 00000A04 */]
  771. 00000966  4EAD 0CD2                jsr        [A5 + 0xCD2]
  772. label0000096A:
  773. 0000096A  548F                     addq.l     A7, 2
  774. label0000096C:
  775. 0000096C  082E 0000 FFD1           btst.b     [A6 - 0x2F], 0x0
  776. 00000972  6728                     beq        +0x2A /* 0000099C */
  777. 00000974  4FEF FFFE                lea.l      A7, [A7 - 0x2]
  778. 00000978  A994                     trap       CurResFile
  779. 0000097A  3F38 0A60                move.w     -[A7], [0x00000A60 /* ResErr */]
  780. 0000097E  6708                     beq        +0xA /* 00000988 */
  781. 00000980  487A 0082                pea.l      [PC + 0x82 /* 00000A04 */]
  782. 00000984  4EAD 0CD2                jsr        [A5 + 0xCD2]
  783. label00000988:
  784. 00000988  548F                     addq.l     A7, 2
  785. 0000098A  A99A                     trap       CloseResFile
  786. 0000098C  3F38 0A60                move.w     -[A7], [0x00000A60 /* ResErr */]
  787. 00000990  6708                     beq        +0xA /* 0000099A */
  788. 00000992  487A 0070                pea.l      [PC + 0x70 /* 00000A04 */]
  789. 00000996  4EAD 0CD2                jsr        [A5 + 0xCD2]
  790. label0000099A:
  791. 0000099A  548F                     addq.l     A7, 2
  792. label0000099C:
  793. 0000099C  082E 0000 FFD0           btst.b     [A6 - 0x30], 0x0
  794. 000009A2  672A                     beq        +0x2C /* 000009CE */
  795. 000009A4  2F2A 023C                move.l     -[A7], [A2 + 0x23C]
  796. 000009A8  A9CD                     trap       TEDispose
  797. 000009AA  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  798. 000009AE  6708                     beq        +0xA /* 000009B8 */
  799. 000009B0  487A 0052                pea.l      [PC + 0x52 /* 00000A04 */]
  800. 000009B4  4EAD 0CD2                jsr        [A5 + 0xCD2]
  801. label000009B8:
  802. 000009B8  548F                     addq.l     A7, 2
  803. 000009BA  2F0A                     move.l     -[A7], A2
  804. 000009BC  A92D                     trap       CloseWindow
  805. 000009BE  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  806. 000009C2  6708                     beq        +0xA /* 000009CC */
  807. 000009C4  487A 003E                pea.l      [PC + 0x3E /* 00000A04 */]
  808. 000009C8  4EAD 0CD2                jsr        [A5 + 0xCD2]
  809. label000009CC:
  810. 000009CC  548F                     addq.l     A7, 2
  811. label000009CE:
  812. 000009CE  422A 00AC                clr.b      [A2 + 0xAC]
  813. label000009D2:
  814. 000009D2  082A 0000 00B8           btst.b     [A2 + 0xB8], 0x0
  815. 000009D8  6716                     beq        +0x18 /* 000009F0 */
  816. 000009DA  082E 0000 FFCF           btst.b     [A6 - 0x31], 0x0
  817. 000009E0  6708                     beq        +0xA /* 000009EA */
  818. 000009E2  3F3C 001C                move.w     -[A7], 0x1C
  819. 000009E6  4EAD 04FA                jsr        [A5 + 0x4FA]
  820. label000009EA:
  821. 000009EA  357C 0101 03A6           move.w     [A2 + 0x3A6], 0x101
  822. label000009F0:
  823. 000009F0  4CDF 070F                movem.l    A2,A1,A0,D3,D2,D1,D0, [A7]+
  824. 000009F4  4E5E                     unlink     A6
  825. 000009F6  2F57 0010                move.l     [A7 + 0x10], [A7]
  826. 000009FA  4FEF 0010                lea.l      A7, [A7 + 0x10]
  827. 000009FE  4A6F 0004                tst.w      [A7 + 0x4]
  828. 00000A02  4E75                     rts
  829. 00000A04  924F                     sub.w      D1, A7
  830. 00000A06  5045                     addq.w     D5, 8
  831. 00000A08  4E53 5441                link       A3, -0xFFFFABBF
  832. 00000A0C  4E44                     trap       4
  833. 00000A0E  4152                     chk.w      D0, [A2]
  834. 00000A10  4457                     neg.w      [A7]
  835. 00000A12  494E                     chk.w      D4, A6
  836. 00000A14  444F                     neg.w      A7
  837. 00000A16  5720                     subq.b     -[A0], 3
  838. 00000A18  0000 0120                ori.b      D0, 0x20 /* ' ' */
  839. 00000A1C  0768 6920                bchg       [A0 + 0x6920], D3
  840. 00000A20  6D69                     blt        +0x6B /* 00000A8B */
  841. 00000A22  6B65                     bmi        +0x67 /* 00000A89 */
  842. 00000A24  1245                     movea.b    A1, D5
  843. 00000A26  6E76                     bgt        +0x78 /* 00000A9E */
  844. 00000A28  6972                     bvs        +0x74 /* 00000A9C */
  845. 00000A2A  6F6E                     ble        +0x70 /* 00000A9A */
  846. 00000A2C  6D65                     blt        +0x67 /* 00000A93 */
  847. 00000A2E  6E74                     bgt        +0x76 /* 00000AA4 */
  848. 00000A30  2073 7475                movea.l    A0, [A3 + D7.w * 4 + 0x75]
  849. 00000A34  6666                     bne        +0x68 /* 00000A9C */
  850. 00000A36  C900                     abcd       D4, D0
  851. export_311:
  852. fn00000A38:
  853. 00000A38  4E56 0000                link       A6, 0
  854. 00000A3C  48E7 E0C0                movem.l    -[A7], D0,D1,D2,A0,A1
  855. 00000A40  707A                     moveq.l    D0, 0x7A
  856. 00000A42  A11E                     trap       NewPtr, flags=1
  857. 00000A44  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  858. 00000A48  6708                     beq        +0xA /* 00000A52 */
  859. 00000A4A  487A 004C                pea.l      [PC + 0x4C /* 00000A98 */]
  860. 00000A4E  4EAD 0CD2                jsr        [A5 + 0xCD2]
  861. label00000A52:
  862. 00000A52  548F                     addq.l     A7, 2
  863. 00000A54  2248                     movea.l    A1, A0
  864. 00000A56  7079                     moveq.l    D0, 0x79
  865. label00000A58:
  866. 00000A58  4219                     clr.b      [A1]+
  867. 00000A5A  51C8 FFFC                dbf        D0, -0x6 /* 00000A58 */
  868. 00000A5E  316E 0008 0016           move.w     [A0 + 0x16], [A6 + 0x8]
  869. 00000A64  A015                     trap       SetVol/PBHSetVol/HSetVol
  870. 00000A66  3F00                     move.w     -[A7], D0
  871. 00000A68  6700 000A                beq        +0xC /* 00000A74 */
  872. 00000A6C  487A 002A                pea.l      [PC + 0x2A /* 00000A98 */]
  873. 00000A70  4EAD 0CD2                jsr        [A5 + 0xCD2]
  874. label00000A74:
  875. 00000A74  548F                     addq.l     A7, 2
  876. 00000A76  A01F                     trap       DisposPtr/DisposePtr
  877. 00000A78  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  878. 00000A7C  6708                     beq        +0xA /* 00000A86 */
  879. 00000A7E  487A 0018                pea.l      [PC + 0x18 /* 00000A98 */]
  880. 00000A82  4EAD 0CD2                jsr        [A5 + 0xCD2]
  881. label00000A86:
  882. 00000A86  548F                     addq.l     A7, 2
  883. 00000A88  4CDF 0307                movem.l    A1,A0,D2,D1,D0, [A7]+
  884. label00000A89: // (misaligned)
  885. label00000A8B: // (misaligned)
  886. 00000A8C  4E5E                     unlink     A6
  887. 00000A8E  2F57 0002                move.l     [A7 + 0x2], [A7]
  888. 00000A92  4FEF 0002                lea.l      A7, [A7 + 0x2]
  889. label00000A93: // (misaligned)
  890. 00000A96  4E75                     rts
  891. 00000A98  884D                     or.w       D4, A5
  892. label00000A9A:
  893. 00000A9A  5953                     subq.w     [A3], 4
  894. label00000A9C:
  895. 00000A9C  4554                     chk.w      D2, [A4]
  896. label00000A9E:
  897. 00000A9E  564F                     addq.w     A7, 3
  898. 00000AA0  4C20 0000                movem.w    <none>, -[A0]
  899. export_312:
  900. fn00000AA4:
  901. 00000AA4  4E56 0000                link       A6, 0
  902. 00000AA8  48E7 E0C0                movem.l    -[A7], D0,D1,D2,A0,A1
  903. 00000AAC  707A                     moveq.l    D0, 0x7A
  904. 00000AAE  A11E                     trap       NewPtr, flags=1
  905. 00000AB0  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  906. 00000AB4  6708                     beq        +0xA /* 00000ABE */
  907. 00000AB6  487A 0048                pea.l      [PC + 0x48 /* 00000B00 */]
  908. 00000ABA  4EAD 0CD2                jsr        [A5 + 0xCD2]
  909. label00000ABE:
  910. 00000ABE  548F                     addq.l     A7, 2
  911. 00000AC0  2248                     movea.l    A1, A0
  912. 00000AC2  7079                     moveq.l    D0, 0x79
  913. label00000AC4:
  914. 00000AC4  4219                     clr.b      [A1]+
  915. 00000AC6  51C8 FFFC                dbf        D0, -0x6 /* 00000AC4 */
  916. 00000ACA  A014                     trap       GetVol/PBHGetVol/HGetVol
  917. 00000ACC  3F00                     move.w     -[A7], D0
  918. 00000ACE  6700 000A                beq        +0xC /* 00000ADA */
  919. 00000AD2  487A 002C                pea.l      [PC + 0x2C /* 00000B00 */]
  920. 00000AD6  4EAD 0CD2                jsr        [A5 + 0xCD2]
  921. label00000ADA:
  922. 00000ADA  548F                     addq.l     A7, 2
  923. 00000ADC  3D68 0016 0008           move.w     [A6 + 0x8], [A0 + 0x16]
  924. 00000AE2  A01F                     trap       DisposPtr/DisposePtr
  925. 00000AE4  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  926. 00000AE8  6708                     beq        +0xA /* 00000AF2 */
  927. 00000AEA  487A 0014                pea.l      [PC + 0x14 /* 00000B00 */]
  928. 00000AEE  4EAD 0CD2                jsr        [A5 + 0xCD2]
  929. label00000AF2:
  930. 00000AF2  548F                     addq.l     A7, 2
  931. 00000AF4  4CDF 0307                movem.l    A1,A0,D2,D1,D0, [A7]+
  932. 00000AF8  4E5E                     unlink     A6
  933. 00000AFA  2E97                     move.l     [A7], [A7]
  934. 00000AFC  4FD7                     lea.l      A7, [A7]
  935. 00000AFE  4E75                     rts
  936. 00000B00  884D                     or.w       D4, A5
  937. 00000B02  5947                     subq.w     D7, 4
  938. 00000B04  4554                     chk.w      D2, [A4]
  939. 00000B06  564F                     addq.w     A7, 3
  940. 00000B08  4C20 0000                movem.w    <none>, -[A0]
  941. export_313:
  942. 00000B0C  4E56 0000                link       A6, 0
  943. 00000B10  48E7 E0E0                movem.l    -[A7], D0,D1,D2,A0,A1,A2
  944. 00000B14  41FA 001C                lea.l      A0, [PC + 0x1C /* 00000B32 */]
  945. 00000B18  302E 0008                move.w     D0, [A6 + 0x8]
  946. label00000B1C:
  947. 00000B1C  3210                     move.w     D1, [A0]
  948. 00000B1E  41E8 0004                lea.l      A0, [A0 + 0x4]
  949. 00000B22  6700 0020                beq        +0x22 /* 00000B44 */
  950. 00000B26  B041                     cmp.w      D0, D1
  951. 00000B28  66F2                     bne        -0xC /* 00000B1C */
  952. 00000B2A  3028 FFFE                move.w     D0, [A0 - 0x2]
  953. 00000B2E  4EFB 0002                jmp        [PC + D0.w + 0x2]
  954. 00000B32  0006 003A                ori.b      D6, 0x3A /* ':' */
  955. 00000B36  0007 0046                ori.b      D7, 0x46 /* 'F' */
  956. 00000B3A  0005 0052                ori.b      D5, 0x52 /* 'R' */
  957. 00000B3E  000E 0052                ori.b      A6, 0x52 /* 'R' */
  958. 00000B42  0000 4CDF                ori.b      D0, 0xDF
  959. // begin alternate branch 00000B44-00000B48
  960. label00000B44:
  961. 00000B44  4CDF 0707                movem.l    A2,A1,A0,D2,D1,D0, [A7]+
  962. // end alternate branch 00000B44-00000B48
  963. label00000B44: // (misaligned)
  964. 00000B46  0707                     btst       D7, D3
  965. 00000B48  4E5E                     unlink     A6
  966. 00000B4A  2F57 0006                move.l     [A7 + 0x6], [A7]
  967. 00000B4E  4FEF 0006                lea.l      A7, [A7 + 0x6]
  968. 00000B52  023C 00FE                andi.b     ccr, 254
  969. 00000B56  4E75                     rts
  970. label00000B58:
  971. 00000B58  4CDF 0707                movem.l    A2,A1,A0,D2,D1,D0, [A7]+
  972. 00000B5C  4E5E                     unlink     A6
  973. 00000B5E  2F57 0006                move.l     [A7 + 0x6], [A7]
  974. 00000B62  4FEF 0006                lea.l      A7, [A7 + 0x6]
  975. 00000B66  003C 0001                ori.b      ccr, 1
  976. 00000B6A  4E75                     rts
  977. 00000B6C  2F2E 000A                move.l     -[A7], [A6 + 0xA]
  978. 00000B70  4EBA 0224                jsr        [PC + 0x224 /* 00000D96 */]
  979. 00000B74  64CE                     bcc        -0x30 /* 00000B44 */
  980. 00000B76  60E0                     bra        -0x1E /* 00000B58 */
  981. 00000B78  2F2E 000A                move.l     -[A7], [A6 + 0xA]
  982. 00000B7C  4EBA 0246                jsr        [PC + 0x246 /* 00000DC4 */]
  983. 00000B80  64C2                     bcc        -0x3C /* 00000B44 */
  984. 00000B82  60D4                     bra        -0x2A /* 00000B58 */
  985. 00000B84  2F2E 000A                move.l     -[A7], [A6 + 0xA]
  986. 00000B88  3F2E 0008                move.w     -[A7], [A6 + 0x8]
  987. 00000B8C  4EBA 001C                jsr        [PC + 0x1C /* 00000BAA */]
  988. 00000B90  65C6                     bcs        -0x38 /* 00000B58 */
  989. 00000B92  60B0                     bra        -0x4E /* 00000B44 */
  990. 00000B94  9253                     sub.w      D1, [A3]
  991. 00000B96  5441                     addq.w     D1, 2
  992. 00000B98  4E44                     trap       4
  993. 00000B9A  4152                     chk.w      D0, [A2]
  994. 00000B9C  4457                     neg.w      [A7]
  995. 00000B9E  494E                     chk.w      D4, A6
  996. 00000BA0  444F                     neg.w      A7
  997. 00000BA2  5753                     subq.w     [A3], 3
  998. 00000BA4  4156                     chk.w      D0, [A6]
  999. 00000BA6  4520                     .invalid   2, -[A0] // invalid opcode 4 with b == 4
  1000. 00000BA8  0000 4E56                ori.b      D0, 0x56 /* 'V' */
  1001. // begin alternate branch 00000BAA-00000BAE
  1002. export_314:
  1003. fn00000BAA:
  1004. 00000BAA  4E56 FC00                link       A6, -0x0400
  1005. // end alternate branch 00000BAA-00000BAE
  1006. export_314: // at 00000BAA (misaligned)
  1007. fn00000BAA: // (misaligned)
  1008. 00000BAC  FC00                     .extension 0xC00 // unimplemented
  1009. 00000BAE  48E7 E0E0                movem.l    -[A7], D0,D1,D2,A0,A1,A2
  1010. 00000BB2  246E 000A                movea.l    A2, [A6 + 0xA]
  1011. 00000BB6  082A 0000 00BB           btst.b     [A2 + 0xBB], 0x0
  1012. 00000BBC  671C                     beq        +0x1E /* 00000BDA */
  1013. 00000BBE  082A 0000 00B8           btst.b     [A2 + 0xB8], 0x0
  1014. 00000BC4  660A                     bne        +0xC /* 00000BD0 */
  1015. 00000BC6  082A 0000 00AF           btst.b     [A2 + 0xAF], 0x0
  1016. 00000BCC  6700 00C4                beq        +0xC6 /* 00000C92 */
  1017. label00000BD0:
  1018. 00000BD0  082A 0000 01BE           btst.b     [A2 + 0x1BE], 0x0
  1019. 00000BD6  6700 00BA                beq        +0xBC /* 00000C92 */
  1020. label00000BDA:
  1021. 00000BDA  2F0A                     move.l     -[A7], A2
  1022. 00000BDC  486E FF00                pea.l      [A6 - 0x100]
  1023. 00000BE0  A919                     trap       GetWTitle
  1024. 00000BE2  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  1025. 00000BE6  6708                     beq        +0xA /* 00000BF0 */
  1026. 00000BE8  487A 019A                pea.l      [PC + 0x19A /* 00000D84 */]
  1027. 00000BEC  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1028. label00000BF0:
  1029. 00000BF0  548F                     addq.l     A7, 2
  1030. 00000BF2  422E FE00                clr.b      [A6 - 0x200]
  1031. 00000BF6  082A 0000 00BB           btst.b     [A2 + 0xBB], 0x0
  1032. 00000BFC  6710                     beq        +0x12 /* 00000C0E */
  1033. 00000BFE  3F3C 0080                move.w     -[A7], 0x80
  1034. 00000C02  3F3C 000C                move.w     -[A7], 0xC
  1035. 00000C06  486E FE00                pea.l      [A6 - 0x200]
  1036. 00000C0A  4EAD 0502                jsr        [A5 + 0x502]
  1037. label00000C0E:
  1038. 00000C0E  486E FE00                pea.l      [A6 - 0x200]
  1039. 00000C12  486E FF00                pea.l      [A6 - 0x100]
  1040. 00000C16  303C 000D                move.w     D0, 0xD /* '\r' */
  1041. 00000C1A  0C6E 0005 0008           cmpi.w     [A6 + 0x8], 0x5
  1042. 00000C20  6704                     beq        +0x6 /* 00000C26 */
  1043. 00000C22  303C 000E                move.w     D0, 0xE
  1044. label00000C26:
  1045. 00000C26  3F3C 0080                move.w     -[A7], 0x80
  1046. 00000C2A  3F00                     move.w     -[A7], D0
  1047. 00000C2C  486E FD00                pea.l      [A6 - 0x300]
  1048. 00000C30  4EAD 0502                jsr        [A5 + 0x502]
  1049. 00000C34  486E FD00                pea.l      [A6 - 0x300]
  1050. 00000C38  422E FC00                clr.b      [A6 - 0x400]
  1051. 00000C3C  082A 0000 00B8           btst.b     [A2 + 0xB8], 0x0
  1052. 00000C42  6710                     beq        +0x12 /* 00000C54 */
  1053. 00000C44  3F3C 0080                move.w     -[A7], 0x80
  1054. 00000C48  3F3C 0026                move.w     -[A7], 0x26 /* '&' */
  1055. 00000C4C  486E FC00                pea.l      [A6 - 0x400]
  1056. 00000C50  4EAD 0502                jsr        [A5 + 0x502]
  1057. label00000C54:
  1058. 00000C54  486E FC00                pea.l      [A6 - 0x400]
  1059. 00000C58  A98B                     trap       ParamText
  1060. 00000C5A  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  1061. 00000C5E  6708                     beq        +0xA /* 00000C68 */
  1062. 00000C60  487A 0122                pea.l      [PC + 0x122 /* 00000D84 */]
  1063. 00000C64  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1064. label00000C68:
  1065. 00000C68  548F                     addq.l     A7, 2
  1066. 00000C6A  4EAD 098A                jsr        [A5 + 0x98A]
  1067. 00000C6E  4FEF FFFE                lea.l      A7, [A7 - 0x2]
  1068. 00000C72  3F3C 00CB                move.w     -[A7], 0xCB
  1069. 00000C76  42A7                     clr.l      -[A7]
  1070. 00000C78  4267                     clr.w      -[A7]
  1071. 00000C7A  4EAD 050A                jsr        [A5 + 0x50A]
  1072. 00000C7E  4EAD 0982                jsr        [A5 + 0x982]
  1073. 00000C82  301F                     move.w     D0, [A7]+
  1074. 00000C84  0C40 0004                cmpi.w     D0, 0x4
  1075. 00000C88  6714                     beq        +0x16 /* 00000C9E */
  1076. 00000C8A  0C40 0001                cmpi.w     D0, 0x1
  1077. 00000C8E  6600 00E0                bne        +0xE2 /* 00000D70 */
  1078. label00000C92:
  1079. 00000C92  2F2E 000A                move.l     -[A7], [A6 + 0xA]
  1080. 00000C96  4EBA 00FE                jsr        [PC + 0xFE /* 00000D96 */]
  1081. 00000C9A  6500 00D4                bcs        +0xD6 /* 00000D70 */
  1082. label00000C9E:
  1083. 00000C9E  082A 0000 01BF           btst.b     [A2 + 0x1BF], 0x0
  1084. 00000CA4  6734                     beq        +0x36 /* 00000CDA */
  1085. 00000CA6  302A 01C0                move.w     D0, [A2 + 0x1C0]
  1086. 00000CAA  6714                     beq        +0x16 /* 00000CC0 */
  1087. 00000CAC  3F00                     move.w     -[A7], D0
  1088. 00000CAE  A99A                     trap       CloseResFile
  1089. 00000CB0  3F38 0A60                move.w     -[A7], [0x00000A60 /* ResErr */]
  1090. 00000CB4  6708                     beq        +0xA /* 00000CBE */
  1091. 00000CB6  487A 00CC                pea.l      [PC + 0xCC /* 00000D84 */]
  1092. 00000CBA  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1093. label00000CBE:
  1094. 00000CBE  548F                     addq.l     A7, 2
  1095. label00000CC0:
  1096. 00000CC0  41EA 01C2                lea.l      A0, [A2 + 0x1C2]
  1097. 00000CC4  A001                     trap       Close
  1098. 00000CC6  3F00                     move.w     -[A7], D0
  1099. 00000CC8  6700 000A                beq        +0xC /* 00000CD4 */
  1100. 00000CCC  487A 00B6                pea.l      [PC + 0xB6 /* 00000D84 */]
  1101. 00000CD0  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1102. label00000CD4:
  1103. 00000CD4  548F                     addq.l     A7, 2
  1104. 00000CD6  422A 00BB                clr.b      [A2 + 0xBB]
  1105. label00000CDA:
  1106. 00000CDA  2F2A 023C                move.l     -[A7], [A2 + 0x23C]
  1107. 00000CDE  A9CD                     trap       TEDispose
  1108. 00000CE0  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  1109. 00000CE4  6708                     beq        +0xA /* 00000CEE */
  1110. 00000CE6  487A 009C                pea.l      [PC + 0x9C /* 00000D84 */]
  1111. 00000CEA  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1112. label00000CEE:
  1113. 00000CEE  548F                     addq.l     A7, 2
  1114. 00000CF0  2F0A                     move.l     -[A7], A2
  1115. 00000CF2  A92D                     trap       CloseWindow
  1116. 00000CF4  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  1117. 00000CF8  6708                     beq        +0xA /* 00000D02 */
  1118. 00000CFA  487A 0088                pea.l      [PC + 0x88 /* 00000D84 */]
  1119. 00000CFE  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1120. label00000D02:
  1121. 00000D02  548F                     addq.l     A7, 2
  1122. 00000D04  422A 00AC                clr.b      [A2 + 0xAC]
  1123. 00000D08  B5ED EB4A                cmpa.l     A2, [A5 - 0x14B6]
  1124. 00000D0C  6606                     bne        +0x8 /* 00000D14 */
  1125. 00000D0E  2B6D E88A EB4A           move.l     [A5 - 0x14B6], [A5 - 0x1776]
  1126. label00000D14:
  1127. 00000D14  2F0A                     move.l     -[A7], A2
  1128. 00000D16  4EAD 0A8A                jsr        [A5 + 0xA8A]
  1129. 00000D1A  2F0A                     move.l     -[A7], A2
  1130. 00000D1C  4EAD 0A9A                jsr        [A5 + 0xA9A]
  1131. 00000D20  42AA 0098                clr.l      [A2 + 0x98]
  1132. 00000D24  4FEF FFFC                lea.l      A7, [A7 - 0x4]
  1133. 00000D28  3F3C 0084                move.w     -[A7], 0x84
  1134. 00000D2C  A9BF                     trap       GetRMenu
  1135. 00000D2E  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  1136. 00000D32  6708                     beq        +0xA /* 00000D3C */
  1137. 00000D34  487A 004E                pea.l      [PC + 0x4E /* 00000D84 */]
  1138. 00000D38  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1139. label00000D3C:
  1140. 00000D3C  548F                     addq.l     A7, 2
  1141. 00000D3E  4FEF FFFE                lea.l      A7, [A7 - 0x2]
  1142. 00000D42  3F3C 0084                move.w     -[A7], 0x84
  1143. 00000D46  486A 00BE                pea.l      [A2 + 0xBE]
  1144. 00000D4A  4EAD 0BFA                jsr        [A5 + 0xBFA]
  1145. 00000D4E  A952                     trap       DeleteMenuItem/DelMenuItem
  1146. 00000D50  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  1147. 00000D54  6708                     beq        +0xA /* 00000D5E */
  1148. 00000D56  487A 002C                pea.l      [PC + 0x2C /* 00000D84 */]
  1149. 00000D5A  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1150. label00000D5E:
  1151. 00000D5E  548F                     addq.l     A7, 2
  1152. 00000D60  4CDF 0707                movem.l    A2,A1,A0,D2,D1,D0, [A7]+
  1153. 00000D64  4E5E                     unlink     A6
  1154. 00000D66  2F57 0006                move.l     [A7 + 0x6], [A7]
  1155. 00000D6A  4FEF 0006                lea.l      A7, [A7 + 0x6]
  1156. 00000D6E  4E75                     rts
  1157. label00000D70:
  1158. 00000D70  4CDF 0707                movem.l    A2,A1,A0,D2,D1,D0, [A7]+
  1159. 00000D74  4E5E                     unlink     A6
  1160. 00000D76  2F57 0006                move.l     [A7 + 0x6], [A7]
  1161. 00000D7A  003C 0001                ori.b      ccr, 1
  1162. 00000D7E  4FEF 0006                lea.l      A7, [A7 + 0x6]
  1163. 00000D82  4E75                     rts
  1164. 00000D84  8E43                     or.w       D7, D3
  1165. 00000D86  4C4F 5345                movem.l    A6,A4,A1,A0,D6,D2,D0, A7
  1166. 00000D8A  5448                     addq.w     A0, 2
  1167. 00000D8C  4557                     chk.w      D2, [A7]
  1168. 00000D8E  494E                     chk.w      D4, A6
  1169. 00000D90  444F                     neg.w      A7
  1170. 00000D92  5720                     subq.b     -[A0], 3
  1171. 00000D94  0000 4E56                ori.b      D0, 0x56 /* 'V' */
  1172. // begin alternate branch 00000D96-00000D9A
  1173. fn00000D96:
  1174. 00000D96  4E56 FDB0                link       A6, -0x0250
  1175. // end alternate branch 00000D96-00000D9A
  1176. fn00000D96: // (misaligned)
  1177. 00000D98  FDB0                     .extension 0xDB0 // unimplemented
  1178. 00000D9A  48E7 E0E0                movem.l    -[A7], D0,D1,D2,A0,A1,A2
  1179. 00000D9E  246E 0008                movea.l    A2, [A6 + 0x8]
  1180. 00000DA2  082A 0000 00BB           btst.b     [A2 + 0xBB], 0x0
  1181. 00000DA8  6700 0026                beq        +0x28 /* 00000DD0 */
  1182. 00000DAC  082A 0000 01BE           btst.b     [A2 + 0x1BE], 0x0
  1183. 00000DB2  6700 034C                beq        +0x34E /* 00001100 */
  1184. 00000DB6  082A 0000 00B8           btst.b     [A2 + 0xB8], 0x0
  1185. 00000DBC  6600 0012                bne        +0x14 /* 00000DD0 */
  1186. 00000DC0  6000 033E                bra        +0x340 /* 00001100 */
  1187. fn00000DC4:
  1188. 00000DC4  4E56 FDB0                link       A6, -0x0250
  1189. 00000DC8  48E7 E0E0                movem.l    -[A7], D0,D1,D2,A0,A1,A2
  1190. 00000DCC  246E 0008                movea.l    A2, [A6 + 0x8]
  1191. label00000DD0:
  1192. 00000DD0  4FEF FFFE                lea.l      A7, [A7 - 0x2]
  1193. 00000DD4  4EBA FCCE                jsr        [PC - 0x332 /* 00000AA4 */]
  1194. 00000DD8  3D5F FDB0                move.w     [A6 - 0x250], [A7]+
  1195. 00000DDC  2F0A                     move.l     -[A7], A2
  1196. 00000DDE  486E FEB6                pea.l      [A6 - 0x14A]
  1197. 00000DE2  A919                     trap       GetWTitle
  1198. 00000DE4  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  1199. 00000DE8  6708                     beq        +0xA /* 00000DF2 */
  1200. 00000DEA  487A 034A                pea.l      [PC + 0x34A /* 00001136 */]
  1201. 00000DEE  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1202. label00000DF2:
  1203. 00000DF2  548F                     addq.l     A7, 2
  1204. 00000DF4  3F3C 0064                move.w     -[A7], 0x64 /* 'd' */
  1205. 00000DF8  487A 0360                pea.l      [PC + 0x360 /* 0000115A, pstring "Save document as:" */]
  1206. 00000DFC  486E FEB6                pea.l      [A6 - 0x14A]
  1207. 00000E00  1F2A 00BB                move.b     -[A7], [A2 + 0xBB]
  1208. 00000E04  3F2A 01DA                move.w     -[A7], [A2 + 0x1DA]
  1209. 00000E08  486E FFB6                pea.l      [A6 - 0x4A]
  1210. 00000E0C  4EAD 0C3A                jsr        [A5 + 0xC3A]
  1211. 00000E10  4EAD 0982                jsr        [A5 + 0x982]
  1212. 00000E14  082E 0000 FFB6           btst.b     [A6 - 0x4A], 0x0
  1213. 00000E1A  6700 02FE                beq        +0x300 /* 0000111A */
  1214. 00000E1E  3F2E FFBC                move.w     -[A7], [A6 - 0x44]
  1215. 00000E22  4EBA FC14                jsr        [PC - 0x3EC /* 00000A38 */]
  1216. 00000E26  082A 0000 01BF           btst.b     [A2 + 0x1BF], 0x0
  1217. 00000E2C  6700 0086                beq        +0x88 /* 00000EB4 */
  1218. 00000E30  4A6A 01C0                tst.w      [A2 + 0x1C0]
  1219. 00000E34  6768                     beq        +0x6A /* 00000E9E */
  1220. 00000E36  2F2A 0348                move.l     -[A7], [A2 + 0x348]
  1221. 00000E3A  A9AA                     trap       ChangedResource
  1222. 00000E3C  0C78 FFC3 0A60           cmpi.w     [0x00000A60 /* ResErr */], 0xFFC3
  1223. 00000E42  672E                     beq        +0x30 /* 00000E72 */
  1224. 00000E44  0C78 FFD4 0A60           cmpi.w     [0x00000A60 /* ResErr */], 0xFFD4
  1225. 00000E4A  6726                     beq        +0x28 /* 00000E72 */
  1226. 00000E4C  3F38 0A60                move.w     -[A7], [0x00000A60 /* ResErr */]
  1227. 00000E50  6708                     beq        +0xA /* 00000E5A */
  1228. 00000E52  487A 02E2                pea.l      [PC + 0x2E2 /* 00001136 */]
  1229. 00000E56  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1230. label00000E5A:
  1231. 00000E5A  548F                     addq.l     A7, 2
  1232. 00000E5C  2F2A 0348                move.l     -[A7], [A2 + 0x348]
  1233. 00000E60  A9B0                     trap       WriteResource
  1234. 00000E62  3F38 0A60                move.w     -[A7], [0x00000A60 /* ResErr */]
  1235. 00000E66  6708                     beq        +0xA /* 00000E70 */
  1236. 00000E68  487A 02CC                pea.l      [PC + 0x2CC /* 00001136 */]
  1237. 00000E6C  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1238. label00000E70:
  1239. 00000E70  548F                     addq.l     A7, 2
  1240. label00000E72:
  1241. 00000E72  2F2A 0348                move.l     -[A7], [A2 + 0x348]
  1242. 00000E76  A992                     trap       DetachResource
  1243. 00000E78  3F38 0A60                move.w     -[A7], [0x00000A60 /* ResErr */]
  1244. 00000E7C  6708                     beq        +0xA /* 00000E86 */
  1245. 00000E7E  487A 02B6                pea.l      [PC + 0x2B6 /* 00001136 */]
  1246. 00000E82  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1247. label00000E86:
  1248. 00000E86  548F                     addq.l     A7, 2
  1249. 00000E88  3F2A 01C0                move.w     -[A7], [A2 + 0x1C0]
  1250. 00000E8C  A99A                     trap       CloseResFile
  1251. 00000E8E  3F38 0A60                move.w     -[A7], [0x00000A60 /* ResErr */]
  1252. 00000E92  6708                     beq        +0xA /* 00000E9C */
  1253. 00000E94  487A 02A0                pea.l      [PC + 0x2A0 /* 00001136 */]
  1254. 00000E98  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1255. label00000E9C:
  1256. 00000E9C  548F                     addq.l     A7, 2
  1257. label00000E9E:
  1258. 00000E9E  41EA 01C2                lea.l      A0, [A2 + 0x1C2]
  1259. 00000EA2  A001                     trap       Close
  1260. 00000EA4  3F00                     move.w     -[A7], D0
  1261. 00000EA6  6700 000A                beq        +0xC /* 00000EB2 */
  1262. 00000EAA  487A 028A                pea.l      [PC + 0x28A /* 00001136 */]
  1263. 00000EAE  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1264. label00000EB2:
  1265. 00000EB2  548F                     addq.l     A7, 2
  1266. label00000EB4:
  1267. 00000EB4  41EA 01C2                lea.l      A0, [A2 + 0x1C2]
  1268. 00000EB8  7079                     moveq.l    D0, 0x79
  1269. label00000EBA:
  1270. 00000EBA  4218                     clr.b      [A0]+
  1271. 00000EBC  51C8 FFFC                dbf        D0, -0x6 /* 00000EBA */
  1272. 00000EC0  41EA 01C2                lea.l      A0, [A2 + 0x1C2]
  1273. 00000EC4  43EE FFC0                lea.l      A1, [A6 - 0x40]
  1274. 00000EC8  2149 0012                move.l     [A0 + 0x12], A1
  1275. 00000ECC  316E FFBC 0016           move.w     [A0 + 0x16], [A6 - 0x44]
  1276. 00000ED2  A00C                     trap       GetFileInfo/PBHGetFInfo/HGetFileInfo
  1277. 00000ED4  0C40 FFD5                cmpi.w     D0, 0xFFD5
  1278. 00000ED8  664A                     bne        +0x4C /* 00000F24 */
  1279. 00000EDA  A008                     trap       Create/PBHCreate/HCreate
  1280. 00000EDC  3F00                     move.w     -[A7], D0
  1281. 00000EDE  6700 000A                beq        +0xC /* 00000EEA */
  1282. 00000EE2  487A 0252                pea.l      [PC + 0x252 /* 00001136 */]
  1283. 00000EE6  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1284. label00000EEA:
  1285. 00000EEA  548F                     addq.l     A7, 2
  1286. 00000EEC  3F3C 0080                move.w     -[A7], 0x80
  1287. 00000EF0  3F3C 000F                move.w     -[A7], 0xF
  1288. 00000EF4  486E FDB5                pea.l      [A6 - 0x24B]
  1289. 00000EF8  4EAD 0502                jsr        [A5 + 0x502]
  1290. 00000EFC  216E FDB6 0024           move.l     [A0 + 0x24], [A6 - 0x24A]
  1291. 00000F02  217C 5445 5854 0020      move.l     [A0 + 0x20], 0x54455854 /* 'TEXT' */
  1292. 00000F0A  2178 020C 0048           move.l     [A0 + 0x48], [0x0000020C /* Time */]
  1293. 00000F10  A00D                     trap       SetFileInfo/PBHSetFInfo/HSetFileInfo
  1294. 00000F12  3F00                     move.w     -[A7], D0
  1295. 00000F14  6700 000A                beq        +0xC /* 00000F20 */
  1296. 00000F18  487A 021C                pea.l      [PC + 0x21C /* 00001136 */]
  1297. 00000F1C  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1298. label00000F20:
  1299. 00000F20  548F                     addq.l     A7, 2
  1300. 00000F22  6056                     bra        +0x58 /* 00000F7A */
  1301. label00000F24:
  1302. 00000F24  3F00                     move.w     -[A7], D0
  1303. 00000F26  6700 000A                beq        +0xC /* 00000F32 */
  1304. 00000F2A  487A 020A                pea.l      [PC + 0x20A /* 00001136 */]
  1305. 00000F2E  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1306. label00000F32:
  1307. 00000F32  548F                     addq.l     A7, 2
  1308. 00000F34  0CA8 5445 5854 0020      cmpi.l     [A0 + 0x20], 0x54455854 /* 'TEXT' */
  1309. 00000F3C  673C                     beq        +0x3E /* 00000F7A */
  1310. 00000F3E  3F3C 0011                move.w     -[A7], 0x11
  1311. 00000F42  4EAD 04FA                jsr        [A5 + 0x4FA]
  1312. 00000F46  41EA 01C2                lea.l      A0, [A2 + 0x1C2]
  1313. 00000F4A  7079                     moveq.l    D0, 0x79
  1314. label00000F4C:
  1315. 00000F4C  4218                     clr.b      [A0]+
  1316. 00000F4E  51C8 FFFC                dbf        D0, -0x6 /* 00000F4C */
  1317. 00000F52  41EA 01C2                lea.l      A0, [A2 + 0x1C2]
  1318. 00000F56  43EA 00BE                lea.l      A1, [A2 + 0xBE]
  1319. 00000F5A  2149 0012                move.l     [A0 + 0x12], A1
  1320. 00000F5E  316A 00BC 0016           move.w     [A0 + 0x16], [A2 + 0xBC]
  1321. 00000F64  A00C                     trap       GetFileInfo/PBHGetFInfo/HGetFileInfo
  1322. 00000F66  3F00                     move.w     -[A7], D0
  1323. 00000F68  6700 000A                beq        +0xC /* 00000F74 */
  1324. 00000F6C  487A 01C8                pea.l      [PC + 0x1C8 /* 00001136 */]
  1325. 00000F70  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1326. label00000F74:
  1327. 00000F74  548F                     addq.l     A7, 2
  1328. 00000F76  6000 0024                bra        +0x26 /* 00000F9C */
  1329. label00000F7A:
  1330. 00000F7A  41EE FFC0                lea.l      A0, [A6 - 0x40]
  1331. 00000F7E  43EA 00BE                lea.l      A1, [A2 + 0xBE]
  1332. 00000F82  7000                     moveq.l    D0, 0x00
  1333. 00000F84  1018                     move.b     D0, [A0]+
  1334. 00000F86  12C0                     move.b     [A1]+, D0
  1335. 00000F88  5340                     subq.w     D0, 1
  1336. 00000F8A  6B06                     bmi        +0x8 /* 00000F92 */
  1337. label00000F8C:
  1338. 00000F8C  12D8                     move.b     [A1]+, [A0]+
  1339. 00000F8E  51C8 FFFC                dbf        D0, -0x6 /* 00000F8C */
  1340. label00000F92:
  1341. 00000F92  356E FFBC 00BC           move.w     [A2 + 0xBC], [A6 - 0x44]
  1342. 00000F98  41EA 01C2                lea.l      A0, [A2 + 0x1C2]
  1343. label00000F9C:
  1344. 00000F9C  117C 0003 001B           move.b     [A0 + 0x1B], 0x3
  1345. 00000FA2  42A8 001C                clr.l      [A0 + 0x1C]
  1346. 00000FA6  A00A                     trap       OpenRF/PBHOpenRF/HOpenRF
  1347. 00000FA8  3F00                     move.w     -[A7], D0
  1348. 00000FAA  6700 000A                beq        +0xC /* 00000FB6 */
  1349. 00000FAE  487A 0186                pea.l      [PC + 0x186 /* 00001136 */]
  1350. 00000FB2  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1351. label00000FB6:
  1352. 00000FB6  548F                     addq.l     A7, 2
  1353. 00000FB8  42A8 001C                clr.l      [A0 + 0x1C]
  1354. 00000FBC  A012                     trap       SetEOF
  1355. 00000FBE  3F00                     move.w     -[A7], D0
  1356. 00000FC0  6700 000A                beq        +0xC /* 00000FCC */
  1357. 00000FC4  487A 0170                pea.l      [PC + 0x170 /* 00001136 */]
  1358. 00000FC8  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1359. label00000FCC:
  1360. 00000FCC  548F                     addq.l     A7, 2
  1361. 00000FCE  A001                     trap       Close
  1362. 00000FD0  3F00                     move.w     -[A7], D0
  1363. 00000FD2  6700 000A                beq        +0xC /* 00000FDE */
  1364. 00000FD6  487A 015E                pea.l      [PC + 0x15E /* 00001136 */]
  1365. 00000FDA  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1366. label00000FDE:
  1367. 00000FDE  548F                     addq.l     A7, 2
  1368. 00000FE0  117C 0003 001B           move.b     [A0 + 0x1B], 0x3
  1369. 00000FE6  42A8 001C                clr.l      [A0 + 0x1C]
  1370. 00000FEA  A000                     trap       Open/PBHOpen/HOpen
  1371. 00000FEC  3F00                     move.w     -[A7], D0
  1372. 00000FEE  6700 000A                beq        +0xC /* 00000FFA */
  1373. 00000FF2  487A 0142                pea.l      [PC + 0x142 /* 00001136 */]
  1374. 00000FF6  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1375. label00000FFA:
  1376. 00000FFA  548F                     addq.l     A7, 2
  1377. 00000FFC  42A8 001C                clr.l      [A0 + 0x1C]
  1378. 00001000  A012                     trap       SetEOF
  1379. 00001002  3F00                     move.w     -[A7], D0
  1380. 00001004  6700 000A                beq        +0xC /* 00001010 */
  1381. 00001008  487A 012C                pea.l      [PC + 0x12C /* 00001136 */]
  1382. 0000100C  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1383. label00001010:
  1384. 00001010  548F                     addq.l     A7, 2
  1385. 00001012  42A8 0012                clr.l      [A0 + 0x12]
  1386. 00001016  4268 002C                clr.w      [A0 + 0x2C]
  1387. 0000101A  3F28 0016                move.w     -[A7], [A0 + 0x16]
  1388. 0000101E  4EBA FA18                jsr        [PC - 0x5E8 /* 00000A38 */]
  1389. 00001022  486A 00BE                pea.l      [A2 + 0xBE]
  1390. 00001026  A9B1                     trap       CreateResFile
  1391. 00001028  3F38 0A60                move.w     -[A7], [0x00000A60 /* ResErr */]
  1392. 0000102C  6708                     beq        +0xA /* 00001036 */
  1393. 0000102E  487A 0106                pea.l      [PC + 0x106 /* 00001136 */]
  1394. 00001032  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1395. label00001036:
  1396. 00001036  548F                     addq.l     A7, 2
  1397. 00001038  4FEF FFFE                lea.l      A7, [A7 - 0x2]
  1398. 0000103C  486A 00BE                pea.l      [A2 + 0xBE]
  1399. 00001040  A997                     trap       OpenResFile
  1400. 00001042  3F38 0A60                move.w     -[A7], [0x00000A60 /* ResErr */]
  1401. 00001046  6708                     beq        +0xA /* 00001050 */
  1402. 00001048  487A 00EC                pea.l      [PC + 0xEC /* 00001136 */]
  1403. 0000104C  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1404. label00001050:
  1405. 00001050  548F                     addq.l     A7, 2
  1406. 00001052  355F 01C0                move.w     [A2 + 0x1C0], [A7]+
  1407. 00001056  2F2A 0348                move.l     -[A7], [A2 + 0x348]
  1408. 0000105A  2F3C 5052 4C57           move.l     -[A7], 0x50524C57 /* 'PRLW' */
  1409. 00001060  3F3C 0081                move.w     -[A7], 0x81
  1410. 00001064  487A 00E0                pea.l      [PC + 0xE0 /* 00001146 */]
  1411. 00001068  A9AB                     trap       AddResource
  1412. 0000106A  3F38 0A60                move.w     -[A7], [0x00000A60 /* ResErr */]
  1413. 0000106E  6708                     beq        +0xA /* 00001078 */
  1414. 00001070  487A 00C4                pea.l      [PC + 0xC4 /* 00001136 */]
  1415. 00001074  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1416. label00001078:
  1417. 00001078  548F                     addq.l     A7, 2
  1418. 0000107A  157C 0001 00BB           move.b     [A2 + 0xBB], 0x1
  1419. 00001080  157C 0001 01BF           move.b     [A2 + 0x1BF], 0x1
  1420. 00001086  157C 0001 01BE           move.b     [A2 + 0x1BE], 0x1
  1421. 0000108C  156A 00B8 00BA           move.b     [A2 + 0xBA], [A2 + 0xB8]
  1422. 00001092  422A 00B8                clr.b      [A2 + 0xB8]
  1423. 00001096  422A 00B9                clr.b      [A2 + 0xB9]
  1424. 0000109A  2F0A                     move.l     -[A7], A2
  1425. 0000109C  486A 00BE                pea.l      [A2 + 0xBE]
  1426. 000010A0  A91A                     trap       SetWTitle
  1427. 000010A2  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  1428. 000010A6  6708                     beq        +0xA /* 000010B0 */
  1429. 000010A8  487A 008C                pea.l      [PC + 0x8C /* 00001136 */]
  1430. 000010AC  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1431. label000010B0:
  1432. 000010B0  548F                     addq.l     A7, 2
  1433. 000010B2  4FEF FFFC                lea.l      A7, [A7 - 0x4]
  1434. 000010B6  3F3C 0084                move.w     -[A7], 0x84
  1435. 000010BA  A9BF                     trap       GetRMenu
  1436. 000010BC  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  1437. 000010C0  6708                     beq        +0xA /* 000010CA */
  1438. 000010C2  487A 0072                pea.l      [PC + 0x72 /* 00001136 */]
  1439. 000010C6  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1440. label000010CA:
  1441. 000010CA  548F                     addq.l     A7, 2
  1442. 000010CC  4FEF FFFE                lea.l      A7, [A7 - 0x2]
  1443. 000010D0  3F3C 0084                move.w     -[A7], 0x84
  1444. 000010D4  486E FEB6                pea.l      [A6 - 0x14A]
  1445. 000010D8  4EAD 0BFA                jsr        [A5 + 0xBFA]
  1446. 000010DC  486A 00BE                pea.l      [A2 + 0xBE]
  1447. 000010E0  A947                     trap       SetMenuItemText/SetItem
  1448. 000010E2  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  1449. 000010E6  6708                     beq        +0xA /* 000010F0 */
  1450. 000010E8  487A 004C                pea.l      [PC + 0x4C /* 00001136 */]
  1451. 000010EC  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1452. label000010F0:
  1453. 000010F0  548F                     addq.l     A7, 2
  1454. 000010F2  B5ED E88A                cmpa.l     A2, [A5 - 0x1776]
  1455. 000010F6  6708                     beq        +0xA /* 00001100 */
  1456. 000010F8  3F2E FDB0                move.w     -[A7], [A6 - 0x250]
  1457. 000010FC  4EBA F93A                jsr        [PC - 0x6C6 /* 00000A38 */]
  1458. label00001100:
  1459. 00001100  2F0A                     move.l     -[A7], A2
  1460. 00001102  4EBA 0068                jsr        [PC + 0x68 /* 0000116C */]
  1461. 00001106  4CDF 0707                movem.l    A2,A1,A0,D2,D1,D0, [A7]+
  1462. 0000110A  4E5E                     unlink     A6
  1463. 0000110C  2F57 0004                move.l     [A7 + 0x4], [A7]
  1464. 00001110  023C 00FE                andi.b     ccr, 254
  1465. 00001114  4FEF 0004                lea.l      A7, [A7 + 0x4]
  1466. 00001118  4E75                     rts
  1467. label0000111A:
  1468. 0000111A  3F2E FDB0                move.w     -[A7], [A6 - 0x250]
  1469. 0000111E  4EBA F918                jsr        [PC - 0x6E8 /* 00000A38 */]
  1470. 00001122  4CDF 0707                movem.l    A2,A1,A0,D2,D1,D0, [A7]+
  1471. 00001126  4E5E                     unlink     A6
  1472. 00001128  2F57 0004                move.l     [A7 + 0x4], [A7]
  1473. 0000112C  003C 0001                ori.b      ccr, 1
  1474. 00001130  4FEF 0004                lea.l      A7, [A7 + 0x4]
  1475. 00001134  4E75                     rts
  1476. 00001136  8C53                     or.w       D6, [A3]
  1477. 00001138  5441                     addq.w     D1, 2
  1478. 0000113A  4E44                     trap       4
  1479. 0000113C  4152                     chk.w      D0, [A2]
  1480. 0000113E  4453                     neg.w      [A3]
  1481. 00001140  4156                     chk.w      D0, [A6]
  1482. 00001142  4520                     .invalid   2, -[A0] // invalid opcode 4 with b == 4
  1483. 00001144  0000 1245                ori.b      D0, 0x45 /* 'E' */
  1484. 00001148  6E76                     bgt        +0x78 /* 000011C0 */
  1485. 0000114A  6972                     bvs        +0x74 /* 000011BE */
  1486. 0000114C  6F6E                     ble        +0x70 /* 000011BC */
  1487. 0000114E  6D65                     blt        +0x67 /* 000011B5 */
  1488. 00001150  6E74                     bgt        +0x76 /* 000011C6 */
  1489. 00001152  2073 7475                movea.l    A0, [A3 + D7.w * 4 + 0x75]
  1490. 00001156  6666                     bne        +0x68 /* 000011BE */
  1491. 00001158  C900                     abcd       D4, D0
  1492. 0000115A  1153 6176                move.b     [A0 + 0x6176], [A3]
  1493. 0000115E  6520                     bcs        +0x22 /* 00001180 */
  1494. 00001160  646F                     bcc        +0x71 /* 000011D1 */
  1495. 00001162  6375                     bls        +0x77 /* 000011D9 */
  1496. 00001164  6D65                     blt        +0x67 /* 000011CB */
  1497. 00001166  6E74                     bgt        +0x76 /* 000011DC */
  1498. 00001168  2061                     movea.l    A0, -[A1]
  1499. 0000116A  733A                     moveq.l    D1, 0x3A
  1500. fn0000116C:
  1501. 0000116C  4E56 FFF2                link       A6, -0x000E
  1502. 00001170  48E7 E0F8                movem.l    -[A7], D0,D1,D2,A0,A1,A2,A3,A4
  1503. 00001174  266E 0008                movea.l    A3, [A6 + 0x8]
  1504. 00001178  082B 0000 00B8           btst.b     [A3 + 0xB8], 0x0
  1505. 0000117E  6600 017C                bne        +0x17E /* 000012FC */
  1506. // begin alternate branch 00001180-00001186
  1507. label00001180:
  1508. 00001180  017C 206B                bchg       0x206B /* ' k' */, D0
  1509. 00001184  0348                     bchg       A0, D1
  1510. // end alternate branch 00001180-00001186
  1511. label00001180: // (misaligned)
  1512. 00001182  206B 0348                movea.l    A0, [A3 + 0x348]
  1513. 00001186  A029                     trap       HLock
  1514. 00001188  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  1515. 0000118C  6708                     beq        +0xA /* 00001196 */
  1516. 0000118E  487A 01B2                pea.l      [PC + 0x1B2 /* 00001342 */]
  1517. 00001192  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1518. label00001196:
  1519. 00001196  548F                     addq.l     A7, 2
  1520. 00001198  2850                     movea.l    A4, [A0]
  1521. 0000119A  206B 023C                movea.l    A0, [A3 + 0x23C]
  1522. 0000119E  A029                     trap       HLock
  1523. 000011A0  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  1524. 000011A4  6708                     beq        +0xA /* 000011AE */
  1525. 000011A6  487A 019A                pea.l      [PC + 0x19A /* 00001342 */]
  1526. 000011AA  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1527. label000011AE:
  1528. 000011AE  548F                     addq.l     A7, 2
  1529. 000011B0  2250                     movea.l    A1, [A0]
  1530. 000011B2  7000                     moveq.l    D0, 0x00
  1531. 000011B4  3029 0020                move.w     D0, [A1 + 0x20]
  1532. label000011B5: // (misaligned)
  1533. 000011B8  2940 0084                move.l     [A4 + 0x84], D0
  1534. label000011BC:
  1535. 000011BC  3029 0022                move.w     D0, [A1 + 0x22]
  1536. // begin alternate branch 000011BE-000011CC
  1537. label000011BE:
  1538. 000011BE  0022 2940                ori.b      -[A2], 0x40 /* '@' */
  1539. label000011C0: // (misaligned)
  1540. 000011C2  0088 A02A 3F38           ori.l      A0, 0xA02A3F38
  1541. label000011C6: // (misaligned)
  1542. 000011C8  0220 6708                andi.b     -[A0], 0x8
  1543. // end alternate branch 000011BE-000011CC
  1544. label000011BE: // (misaligned)
  1545. label000011C0:
  1546. 000011C0  2940 0088                move.l     [A4 + 0x88], D0
  1547. 000011C4  A02A                     trap       HUnlock
  1548. label000011C6:
  1549. 000011C6  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  1550. 000011CA  6708                     beq        +0xA /* 000011D4 */
  1551. label000011CB: // (misaligned)
  1552. 000011CC  487A 0174                pea.l      [PC + 0x174 /* 00001342 */]
  1553. 000011D0  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1554. label000011D1: // (misaligned)
  1555. label000011D4:
  1556. 000011D4  548F                     addq.l     A7, 2
  1557. 000011D6  396B 0240 0082           move.w     [A4 + 0x82], [A3 + 0x240]
  1558. label000011D9: // (misaligned)
  1559. label000011DC:
  1560. 000011DC  206B 0348                movea.l    A0, [A3 + 0x348]
  1561. 000011E0  A02A                     trap       HUnlock
  1562. 000011E2  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  1563. 000011E6  6708                     beq        +0xA /* 000011F0 */
  1564. 000011E8  487A 0158                pea.l      [PC + 0x158 /* 00001342 */]
  1565. 000011EC  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1566. label000011F0:
  1567. 000011F0  548F                     addq.l     A7, 2
  1568. 000011F2  2F2B 0348                move.l     -[A7], [A3 + 0x348]
  1569. 000011F6  A9AA                     trap       ChangedResource
  1570. 000011F8  0C78 FFC3 0A60           cmpi.w     [0x00000A60 /* ResErr */], 0xFFC3
  1571. 000011FE  6700 0118                beq        +0x11A /* 00001318 */
  1572. 00001202  0C78 FFD4 0A60           cmpi.w     [0x00000A60 /* ResErr */], 0xFFD4
  1573. 00001208  6700 010E                beq        +0x110 /* 00001318 */
  1574. 0000120C  3F38 0A60                move.w     -[A7], [0x00000A60 /* ResErr */]
  1575. 00001210  6708                     beq        +0xA /* 0000121A */
  1576. 00001212  487A 012E                pea.l      [PC + 0x12E /* 00001342 */]
  1577. 00001216  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1578. label0000121A:
  1579. 0000121A  548F                     addq.l     A7, 2
  1580. 0000121C  2F2B 0348                move.l     -[A7], [A3 + 0x348]
  1581. 00001220  A9B0                     trap       WriteResource
  1582. 00001222  3F38 0A60                move.w     -[A7], [0x00000A60 /* ResErr */]
  1583. 00001226  6708                     beq        +0xA /* 00001230 */
  1584. 00001228  487A 0118                pea.l      [PC + 0x118 /* 00001342 */]
  1585. 0000122C  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1586. label00001230:
  1587. 00001230  548F                     addq.l     A7, 2
  1588. 00001232  422B 00B8                clr.b      [A3 + 0xB8]
  1589. 00001236  422B 00B9                clr.b      [A3 + 0xB9]
  1590. 0000123A  08AB 0000 01BE           bclr.b     [A3 + 0x1BE], 0x0
  1591. 00001240  6700 00BA                beq        +0xBC /* 000012FC */
  1592. 00001244  206B 023C                movea.l    A0, [A3 + 0x23C]
  1593. 00001248  A029                     trap       HLock
  1594. 0000124A  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  1595. 0000124E  6708                     beq        +0xA /* 00001258 */
  1596. 00001250  487A 00F0                pea.l      [PC + 0xF0 /* 00001342 */]
  1597. 00001254  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1598. label00001258:
  1599. 00001258  548F                     addq.l     A7, 2
  1600. 0000125A  2250                     movea.l    A1, [A0]
  1601. 0000125C  2D69 003E FFFA           move.l     [A6 - 0x6], [A1 + 0x3E]
  1602. 00001262  A02A                     trap       HUnlock
  1603. 00001264  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  1604. 00001268  6708                     beq        +0xA /* 00001272 */
  1605. 0000126A  487A 00D6                pea.l      [PC + 0xD6 /* 00001342 */]
  1606. 0000126E  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1607. label00001272:
  1608. 00001272  548F                     addq.l     A7, 2
  1609. 00001274  206E FFFA                movea.l    A0, [A6 - 0x6]
  1610. 00001278  A029                     trap       HLock
  1611. 0000127A  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  1612. 0000127E  6708                     beq        +0xA /* 00001288 */
  1613. 00001280  487A 00C0                pea.l      [PC + 0xC0 /* 00001342 */]
  1614. 00001284  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1615. label00001288:
  1616. 00001288  548F                     addq.l     A7, 2
  1617. 0000128A  2D50 FFF6                move.l     [A6 - 0xA], [A0]
  1618. 0000128E  A025                     trap       GetHandleSize
  1619. 00001290  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  1620. 00001294  6708                     beq        +0xA /* 0000129E */
  1621. 00001296  487A 00AA                pea.l      [PC + 0xAA /* 00001342 */]
  1622. 0000129A  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1623. label0000129E:
  1624. 0000129E  548F                     addq.l     A7, 2
  1625. 000012A0  2D40 FFF2                move.l     [A6 - 0xE], D0
  1626. 000012A4  41EB 01C2                lea.l      A0, [A3 + 0x1C2]
  1627. 000012A8  42A8 001C                clr.l      [A0 + 0x1C]
  1628. 000012AC  A012                     trap       SetEOF
  1629. 000012AE  3F00                     move.w     -[A7], D0
  1630. 000012B0  6700 000A                beq        +0xC /* 000012BC */
  1631. 000012B4  487A 008C                pea.l      [PC + 0x8C /* 00001342 */]
  1632. 000012B8  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1633. label000012BC:
  1634. 000012BC  548F                     addq.l     A7, 2
  1635. 000012BE  317C 0001 002C           move.w     [A0 + 0x2C], 0x1
  1636. 000012C4  42A8 002E                clr.l      [A0 + 0x2E]
  1637. 000012C8  216E FFF2 0024           move.l     [A0 + 0x24], [A6 - 0xE]
  1638. 000012CE  216E FFF6 0020           move.l     [A0 + 0x20], [A6 - 0xA]
  1639. 000012D4  A003                     trap       Write
  1640. 000012D6  3F00                     move.w     -[A7], D0
  1641. 000012D8  6700 000A                beq        +0xC /* 000012E4 */
  1642. 000012DC  487A 0064                pea.l      [PC + 0x64 /* 00001342 */]
  1643. 000012E0  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1644. label000012E4:
  1645. 000012E4  548F                     addq.l     A7, 2
  1646. 000012E6  206E FFFA                movea.l    A0, [A6 - 0x6]
  1647. 000012EA  A02A                     trap       HUnlock
  1648. 000012EC  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  1649. 000012F0  6708                     beq        +0xA /* 000012FA */
  1650. 000012F2  487A 004E                pea.l      [PC + 0x4E /* 00001342 */]
  1651. 000012F6  4EAD 0CD2                jsr        [A5 + 0xCD2]
  1652. label000012FA:
  1653. 000012FA  548F                     addq.l     A7, 2
  1654. label000012FC:
  1655. 000012FC  426B 03A6                clr.w      [A3 + 0x3A6]
  1656. 00001300  3F3C 0003                move.w     -[A7], 0x3
  1657. 00001304  4EAD 0A1A                jsr        [A5 + 0xA1A]
  1658. 00001308  4CDF 1F07                movem.l    A4,A3,A2,A1,A0,D2,D1,D0, [A7]+
  1659. 0000130C  4E5E                     unlink     A6
  1660. 0000130E  2F57 0004                move.l     [A7 + 0x4], [A7]
  1661. 00001312  4FEF 0004                lea.l      A7, [A7 + 0x4]
  1662. 00001316  4E75                     rts
  1663. label00001318:
  1664. 00001318  3F3C 0025                move.w     -[A7], 0x25 /* '%' */
  1665. 0000131C  4EAD 04FA                jsr        [A5 + 0x4FA]
  1666. 00001320  377C 0101 03A6           move.w     [A3 + 0x3A6], 0x101
  1667. 00001326  3F3C 0003                move.w     -[A7], 0x3
  1668. 0000132A  4EAD 0A1A                jsr        [A5 + 0xA1A]
  1669. 0000132E  177C 0001 00B8           move.b     [A3 + 0xB8], 0x1
  1670. 00001334  177C 0001 00B9           move.b     [A3 + 0xB9], 0x1
  1671. 0000133A  177C 0001 00BA           move.b     [A3 + 0xBA], 0x1
  1672. 00001340  60BA                     bra        -0x44 /* 000012FC */
  1673. 00001342  8D53                     or.w       [A3], D6
  1674. 00001344  4156                     chk.w      D0, [A6]
  1675. 00001346  4554                     chk.w      D2, [A4]
  1676. 00001348  4841                     swap.w     D1
  1677. 0000134A  5453                     addq.w     [A3], 2
  1678. 0000134C  5455                     addq.w     [A5], 2
  1679. 0000134E  4646                     not.w      D6
  1680. 00001350  0000                     .incomplete
  1681.